Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0.2, 1.0.3, and 1.0.4

stable visdiff: toggle to second parent when diff tool refuses three-way diff

Closes #1023

Changeset c769bbbf1af7

Parent 374d40d80501

by Steve Borho

Changes to one file · Browse files at c769bbbf1af7 Showing diff from parent 374d40d80501 Diff from another changeset...

 
204
205
206
207
208
209
 
 
 
 
 
 
 
 
 
210
211
212
 
204
205
206
 
 
 
207
208
209
210
211
212
213
214
215
216
217
218
@@ -204,9 +204,15 @@
  diffcmd, diffopts, mergeopts = detectedtools[preferred]     # Disable 3-way merge if there is only one parent or no tool support - do3way = bool(mergeopts) and ctx1b is not None - if do3way: - args = mergeopts + do3way = False + if ctx1b: + if mergeopts: + do3way = True + args = mergeopts + else: + args = diffopts + if str(ctx1b.rev()) in revs: + ctx1a = ctx1b   else:   args = diffopts