Show More
@@ -40,6 +40,7 b' Tool arguments can include variables tha' | |||
|
40 | 40 | $parent1, $plabel1 - filename, descriptive label of first parent |
|
41 | 41 | $child, $clabel - filename, descriptive label of child revision |
|
42 | 42 | $parent2, $plabel2 - filename, descriptive label of second parent |
|
43 | $root - repository root | |
|
43 | 44 | $parent is an alias for $parent1. |
|
44 | 45 | |
|
45 | 46 | The extdiff extension will look in your [diff-tools] and [merge-tools] |
@@ -205,7 +206,8 b' def dodiff(ui, repo, diffcmd, diffopts, ' | |||
|
205 | 206 | # returned for parent2 |
|
206 | 207 | replace = dict(parent=dir1a, parent1=dir1a, parent2=dir1b, |
|
207 | 208 | plabel1=label1a, plabel2=label1b, |
|
208 |
clabel=label2, child=dir2 |
|
|
209 | clabel=label2, child=dir2, | |
|
210 | root=repo.root) | |
|
209 | 211 | def quote(match): |
|
210 | 212 | key = match.group()[1:] |
|
211 | 213 | if not do3way and key == 'parent2': |
@@ -213,7 +215,7 b' def dodiff(ui, repo, diffcmd, diffopts, ' | |||
|
213 | 215 | return util.shellquote(replace[key]) |
|
214 | 216 | |
|
215 | 217 | # Match parent2 first, so 'parent1?' will match both parent1 and parent |
|
216 | regex = '\$(parent2|parent1?|child|plabel1|plabel2|clabel)' | |
|
218 | regex = '\$(parent2|parent1?|child|plabel1|plabel2|clabel|root)' | |
|
217 | 219 | if not do3way and not re.search(regex, args): |
|
218 | 220 | args += ' $parent1 $child' |
|
219 | 221 | args = re.sub(regex, quote, args) |
General Comments 0
You need to be logged in to leave comments.
Login now