Mercurial > hg
view tests/test-diffdir.t @ 12497:5d00a35ea2ea
keyword: do not expand at all during diff
Always shrink and never expand keywords during a diff operation.
Avoid user distraction e.g. because of spurious differences
appearing in the commit editor.
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Sun, 26 Sep 2010 19:18:41 +0200 |
parents | 3b165c127690 |
children | 2063d36b406e |
line wrap: on
line source
$ hg init $ touch a $ hg add a $ hg ci -m "a" $ echo 123 > b $ hg add b $ hg diff --nodates diff -r 3903775176ed b --- /dev/null +++ b/b @@ -0,0 +1,1 @@ +123 $ hg diff --nodates -r tip diff -r 3903775176ed b --- /dev/null +++ b/b @@ -0,0 +1,1 @@ +123 $ echo foo > a $ hg diff --nodates diff -r 3903775176ed a --- a/a +++ b/a @@ -0,0 +1,1 @@ +foo diff -r 3903775176ed b --- /dev/null +++ b/b @@ -0,0 +1,1 @@ +123 $ hg diff -r "" abort: 00changelog.i@: ambiguous identifier! [255] $ hg diff -r tip -r "" abort: 00changelog.i@: ambiguous identifier! [255]