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

r9110:561ff8d9 default
r9725:3f522d2f default
Show More
test-mq-qnew.out
34 lines | 769 B | text/plain | TextLexer
Brendan Cully
mq: put qnew tests into own file, fold in qnew-twice
r7296 adding a
% qnew should refuse bad patch names
abort: "series" cannot be used as the name of a patch
abort: "status" cannot be used as the name of a patch
abort: "guards" cannot be used as the name of a patch
abort: ".hgignore" cannot be used as the name of a patch
% qnew with uncommitted changes
abort: local changes found, refresh first
A somefile
% qnew implies add
A .hgignore
A series
A test.patch
% qnew missing
abort: missing: No such file or directory
% qnew -m
foo bar
Bernhard Leiner
mq: make qnew patch format consistent with qrefresh (issue1457)
r7614
Brendan Cully
mq: put qnew tests into own file, fold in qnew-twice
r7296 % qnew twice
abort: patch "first.patch" already exists
abort: patch "first.patch" already exists
Brendan Cully
mq: use cmdutil.matchfiles instead of match for qnew -f....
r7297 % qnew -f from a subdirectory
Mads Kiilerich
mq: qpop now tells which patches are popped...
r9110 popping first.patch
popping mtest.patch
popping test.patch
Martin Geisler
mq: lowercase output...
r7627 patch queue now empty
Brendan Cully
mq: use cmdutil.matchfiles instead of match for qnew -f....
r7297 adding d/b
M d/b
diff --git a/d/b b/d/b
--- a/d/b
+++ b/d/b
@@ -1,1 +1,2 @@
b
+b