Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
24431:a0004402776b | 24432:e22248f6d257 |
---|---|
42 --- a/beta/two | 42 --- a/beta/two |
43 +++ b/beta/two | 43 +++ b/beta/two |
44 @@ -0,0 +1,1 @@ | 44 @@ -0,0 +1,1 @@ |
45 +2 | 45 +2 |
46 | 46 |
47 relative to beta | |
48 | |
47 $ cd .. | 49 $ cd .. |
50 $ hg diff --nodates --relative beta | |
51 diff -r 7d5ef1aea329 two | |
52 --- a/two | |
53 +++ b/two | |
54 @@ -0,0 +1,1 @@ | |
55 +2 | |
56 | |
57 inside beta | |
58 | |
59 $ cd beta | |
60 $ hg diff --nodates --relative . | |
61 diff -r 7d5ef1aea329 two | |
62 --- a/two | |
63 +++ b/two | |
64 @@ -0,0 +1,1 @@ | |
65 +2 | |
66 | |
67 $ cd .. |