##// 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:

r8884:8b603c7c default
r9725:3f522d2f default
Show More
test-convert-svn-move.out
43 lines | 804 B | text/plain | TextLexer
/ tests / test-convert-svn-move.out
% convert trunk and branches
initializing destination A-hg repository
scanning source...
sorting...
converting...
11 createtrunk
10 moved1
9 moved1
8 moved2
7 changeb and rm d2
6 changeb and rm d2
5 moved1again
4 moved1again
3 copyfilefrompast
2 copydirfrompast
1 add d3
0 copy dir and remove subdir
o 11 copy dir and remove subdir files: d3/d31/e d4/d31/e d4/f
|
o 10 add d3 files: d3/d31/e d3/f
|
o 9 copydirfrompast files: d2/d
|
o 8 copyfilefrompast files: d
|
o 7 moved1again files: d1/b d1/c
|
| o 6 moved1again files:
| |
o | 5 changeb and rm d2 files: d1/b d2/d
| |
| o 4 changeb and rm d2 files: b
| |
o | 3 moved2 files: d2/d
| |
o | 2 moved1 files: d1/b d1/c
| |
| o 1 moved1 files: b c
|
o 0 createtrunk files:
default 11:
d1 6: