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

r9595:62194016 default
r9725:3f522d2f default
Show More
test-gendoc.out
33 lines | 844 B | text/plain | TextLexer
% extracting documentation from C
checking for parse errors with rst2html
% extracting documentation from da
checking for parse errors with rst2html
% extracting documentation from de
checking for parse errors with rst2html
% extracting documentation from el
checking for parse errors with rst2html
% extracting documentation from fr
checking for parse errors with rst2html
% extracting documentation from it
checking for parse errors with rst2html
% extracting documentation from ja
checking for parse errors with rst2html
% extracting documentation from pt_BR
checking for parse errors with rst2html
% extracting documentation from sv
checking for parse errors with rst2html
% extracting documentation from zh_CN
checking for parse errors with rst2html
% extracting documentation from zh_TW
checking for parse errors with rst2html