##// END OF EJS Templates
diff: add --inverse option...
diff: add --inverse option Most of the time, one can reverse a diff by swapping the revisions passed with -r but it happens that if you use the global -R, and diff against the tip of the current repo, you can't swap the revisions. One use-case for that is reviewing changes from a bundle before unbundling. One could also pipe the output of `hg diff` to a command line filter that reverses the diff, but that would remove the benefit from color diffs. Therefore, having an option in `hg diff` to reverse a diff is a good thing. The option flag selection was tricky. GNU patch uses -R/--reverse but -R is already used as a global option and --reverse would make --rev ambiguous.

File last commit:

r6138:09847b90 default
r9725:3f522d2f default
Show More
test-issue352.out
14 lines | 316 B | text/plain | TextLexer
/ tests / test-issue352.out
Benoit Boissinot
issue352: disallow '\n' and '\r' in filenames (dirstate and manifest)
r3607 adding he llo
Thomas Arendsen Hein
Report filenames with disallowed characters as suggested by Mika Eloranta...
r6138 abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
Benoit Boissinot
issue352: disallow '\n' and '\r' in filenames (dirstate and manifest)
r3607 adding he llo
Thomas Arendsen Hein
Report filenames with disallowed characters as suggested by Mika Eloranta...
r6138 abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
Alexis S. L. Carvalho
Leave normalization of patterns to util._matcher...
r4186 adding hell
o
Thomas Arendsen Hein
Report filenames with disallowed characters as suggested by Mika Eloranta...
r6138 abort: '\n' and '\r' disallowed in filenames: 'hell\no'
Alexis S. L. Carvalho
Leave normalization of patterns to util._matcher...
r4186 adding hell
Benoit Boissinot
issue352: disallow '\n' and '\r' in filenames (dirstate and manifest)
r3607 o
Thomas Arendsen Hein
Report filenames with disallowed characters as suggested by Mika Eloranta...
r6138 abort: '\n' and '\r' disallowed in filenames: 'hell\no'
Alexis S. L. Carvalho
Leave normalization of patterns to util._matcher...
r4186 f he llo he llo
f hell
o hell
o