Mercurial > public > mercurial-scm > hg-stable
diff tests/test-extdiff.t @ 46134:0a4d47f4337b
extdiff: add --from/--to and deprecate -r, as was done for `hg diff`
I recently replaced `hg diff`'s `-r` flag by `--from` and `--to` and
then deprecated the `-r` flag. This patch repeats that for
`hg extdiff`.
Differential Revision: https://phab.mercurial-scm.org/D9624
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 16 Dec 2020 21:06:29 -0800 |
parents | dfe2760db2a6 |
children | c9b2a4d69e66 |
line wrap: on
line diff
--- a/tests/test-extdiff.t Wed Dec 16 22:30:07 2020 -0800 +++ b/tests/test-extdiff.t Wed Dec 16 21:06:29 2020 -0800 @@ -50,7 +50,8 @@ options ([+] can be repeated): -o --option OPT [+] pass option to comparison program - -r --rev REV [+] revision + --from REV1 revision to diff from + --to REV2 revision to diff to -c --change REV change made by revision --per-file compare each file instead of revision snapshots --confirm prompt user before each external program invocation @@ -68,14 +69,14 @@ Should diff cloned files directly: - $ hg falabala -r 0:1 + $ hg falabala --from 0 --to 1 diffing "*\\extdiff.*\\a.8a5febb7f867\\a" "a.34eed99112ab\\a" (glob) (windows !) diffing */extdiff.*/a.8a5febb7f867/a a.34eed99112ab/a (glob) (no-windows !) [1] Can show diff from working copy: $ echo c >> a - $ hg falabala -r 'wdir()' -r 1 + $ hg falabala --to 1 diffing "*\\extdiff.*\\a" "a.34eed99112ab\\a" (glob) (windows !) diffing */extdiff.*/a a.34eed99112ab/a (glob) (no-windows !) [1] @@ -139,7 +140,7 @@ $ hg ci -Sm "adding subrepo" $ echo > .hgsub $ hg ci -m "removing subrepo" - $ hg falabala -r 4 -r 5 -S + $ hg falabala --from 4 --to 5 -S diffing a.398e36faf9c6 a.5ab95fb166c4 [1] @@ -292,7 +293,7 @@ > kdiff3.diffargs=--L1 \$plabel1 --L2 \$clabel \$parent \$child > EOF - $ hg --debug kdiff3 -r0 | grep '^running' + $ hg --debug kdiff3 --from 0 | grep '^running' running 'echo --L1 "@0" --L2 "" a.8a5febb7f867 a' in * (glob) (windows !) running "echo --L1 '@0' --L2 '' a.8a5febb7f867 a" in * (glob) (no-windows !) @@ -496,7 +497,7 @@ $ echo a >> a $ ln -s missing linka $ hg add linka - $ hg falabala -r 0 --traceback + $ hg falabala --from 0 --traceback diffing testsymlinks.07f494440405 testsymlinks [1] $ cd ..