Mercurial > public > mercurial-scm > hg
diff tests/test-diff-subdir.t @ 24432:e22248f6d257
commands.diff: add support for diffs relative to a subdirectory
Previous patches added all the backend support for this. This exposes this
option in the UI.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 17 Mar 2015 15:46:30 -0700 |
parents | f2719b387380 |
children | 16961d43dc89 |
line wrap: on
line diff
--- a/tests/test-diff-subdir.t Tue Mar 17 15:06:40 2015 -0700 +++ b/tests/test-diff-subdir.t Tue Mar 17 15:46:30 2015 -0700 @@ -44,4 +44,24 @@ @@ -0,0 +1,1 @@ +2 +relative to beta + $ cd .. + $ hg diff --nodates --relative beta + diff -r 7d5ef1aea329 two + --- a/two + +++ b/two + @@ -0,0 +1,1 @@ + +2 + +inside beta + + $ cd beta + $ hg diff --nodates --relative . + diff -r 7d5ef1aea329 two + --- a/two + +++ b/two + @@ -0,0 +1,1 @@ + +2 + + $ cd ..