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

r9611:a3d73b3e default
r9725:3f522d2f default
Show More
test-mq-qclone-http.out
80 lines | 1.7 KiB | text/plain | TextLexer
/ tests / test-mq-qclone-http.out
Peter Arrenbrecht
mq: test for qclone of http repo+queue...
r6205 adding a
adding b
[mq]: b.patch
a
b.patch
Dirkjan Ochtman
hgweb: mq repos should be in non-recursive collections, too
r7525 % test with recursive collection
Peter Arrenbrecht
mq: test for qclone of http repo+queue...
r6205 200 Script output follows
/a/
/a/.hg/patches/
requesting all changes
adding changesets
adding manifests
adding file changes
added 2 changesets with 2 changes to 2 files
requesting all changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 3 changes to 3 files
Adrian Buehlmann
hg.clone: report branch name on update
r9611 updating to branch default
Peter Arrenbrecht
mq: test for qclone of http repo+queue...
r6205 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
a
applying b.patch
Martin Geisler
mq: lowercase output...
r7627 now at: b.patch
Peter Arrenbrecht
mq: test for qclone of http repo+queue...
r6205 imported patch b.patch
a
Dirkjan Ochtman
hgweb: mq repos should be in non-recursive collections, too
r7525 % test with normal collection
Dirkjan Ochtman
tests: fix test-mq-qclone-http (broken by e60aaae83323)
r7524 200 Script output follows
/a/
Dirkjan Ochtman
hgweb: mq repos should be in non-recursive collections, too
r7525 /a/.hg/patches/
Dirkjan Ochtman
tests: fix test-mq-qclone-http (broken by e60aaae83323)
r7524
requesting all changes
adding changesets
adding manifests
adding file changes
added 2 changesets with 2 changes to 2 files
requesting all changes
adding changesets
adding manifests
adding file changes
Dirkjan Ochtman
hgweb: mq repos should be in non-recursive collections, too
r7525 added 1 changesets with 3 changes to 3 files
Adrian Buehlmann
hg.clone: report branch name on update
r9611 updating to branch default
Dirkjan Ochtman
hgweb: mq repos should be in non-recursive collections, too
r7525 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
Dirkjan Ochtman
tests: fix test-mq-qclone-http (broken by e60aaae83323)
r7524 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
a
Dirkjan Ochtman
hgweb: mq repos should be in non-recursive collections, too
r7525 applying b.patch
Martin Geisler
mq: lowercase output...
r7627 now at: b.patch
Dirkjan Ochtman
hgweb: mq repos should be in non-recursive collections, too
r7525 imported patch b.patch
Dirkjan Ochtman
tests: fix test-mq-qclone-http (broken by e60aaae83323)
r7524 a
Dirkjan Ochtman
hgweb: mq repos should be in non-recursive collections, too
r7525 % test with old-style collection
200 Script output follows
/a/
/a/.hg/patches/
requesting all changes
adding changesets
adding manifests
adding file changes
added 2 changesets with 2 changes to 2 files
requesting all changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 3 changes to 3 files
Adrian Buehlmann
hg.clone: report branch name on update
r9611 updating to branch default
Dirkjan Ochtman
hgweb: mq repos should be in non-recursive collections, too
r7525 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
a
applying b.patch
Martin Geisler
mq: lowercase output...
r7627 now at: b.patch
Dirkjan Ochtman
hgweb: mq repos should be in non-recursive collections, too
r7525 imported patch b.patch
a