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

r3619:8c4fd0de default
r9725:3f522d2f default
Show More
test-unrelated-pull.out
23 lines | 558 B | text/plain | TextLexer
/ tests / test-unrelated-pull.out
mpm@selenic.com
Actually warn on pulling from an unrelated repository...
r579 pulling from ../a
searching for changes
Vadim Gelfer
update test for unrelated repo.
r1960 abort: repository is unrelated
pulling from ../a
searching for changes
warning: repository is unrelated
mpm@selenic.com
Actually warn on pulling from an unrelated repository...
r579 adding changesets
adding manifests
mpm@selenic.com
Fix up test results...
r775 adding file changes
mpm@selenic.com
Update tests
r1043 added 1 changesets with 1 changes to 1 files (+1 heads)
Vadim Gelfer
add merge command. means same thing as "update -m"....
r2019 (run 'hg heads' to see heads, 'hg merge' to merge)
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 changeset: 1:bdcee5d51fa6
mpm@selenic.com
Actually warn on pulling from an unrelated repository...
r579 tag: tip
Matt Mackall
Fix up parent display in logging...
r3619 parent: -1:000000000000
mpm@selenic.com
Actually warn on pulling from an unrelated repository...
r579 user: a
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 date: Mon Jan 12 13:46:40 1970 +0000
mpm@selenic.com
Actually warn on pulling from an unrelated repository...
r579 summary: a
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 changeset: 0:f155ba1aa5ba
mpm@selenic.com
Actually warn on pulling from an unrelated repository...
r579 user: b
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 date: Mon Jan 12 13:46:40 1970 +0000
mpm@selenic.com
Actually warn on pulling from an unrelated repository...
r579 summary: b