Mercurial > hg
comparison tests/test-hgk.t @ 23451:5fb1fc2e1281
hgk: don't honor whitespace and format-changing diffopts
The diff-tree command is a plumbing command in Git, which means it is expected
to have a stable output format. Ensure that our output is stable too.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 18 Nov 2014 21:38:19 -0800 |
parents | cf72fd8b3072 |
children |
comparison
equal
deleted
inserted
replaced
23450:a074eeeabe32 | 23451:5fb1fc2e1281 |
---|---|
14 revision 0 | 14 revision 0 |
15 branch default | 15 branch default |
16 phase draft | 16 phase draft |
17 | 17 |
18 adda | 18 adda |
19 $ echo b > b | |
20 $ hg ci -Am addb | |
21 adding b | |
22 $ hg log -T '{node}\n' | |
23 102a90ea7b4a3361e4082ed620918c261189a36a | |
24 07f4944404050f47db2e5c5071e0e84e7a27bba9 | |
25 | |
26 $ hg debug-diff-tree 07f494440405 102a90ea7b4a | |
27 :000000 100664 000000000000 1e88685f5dde N b b | |
28 $ hg debug-diff-tree 07f494440405 102a90ea7b4a --patch | |
29 diff --git a/b b/b | |
30 new file mode 100644 | |
31 --- /dev/null | |
32 +++ b/b | |
33 @@ -0,0 +1,1 @@ | |
34 +b | |
35 | |
36 Ensure that diff-tree output isn't affected by diffopts | |
37 $ hg --config diff.noprefix=True debug-diff-tree 07f494440405 102a90ea7b4a | |
38 :000000 100664 000000000000 1e88685f5dde N b b | |
39 $ hg --config diff.noprefix=True debug-diff-tree --patch 07f494440405 102a90ea7b4a | |
40 diff --git a/b b/b | |
41 new file mode 100644 | |
42 --- /dev/null | |
43 +++ b/b | |
44 @@ -0,0 +1,1 @@ | |
45 +b | |
19 | 46 |
20 $ cd .. | 47 $ cd .. |