Mercurial > hg
comparison tests/test-status-terse.t @ 38467:09b09fe7ee90
terse: add tests of running from subdirectory
I also included comments explaining what I think the output should be
(discussion started on D3628).
Differential Revision: https://phab.mercurial-scm.org/D3837
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 25 Jun 2018 11:01:11 -0700 |
parents | 18424aeece7f |
children | 8d72e29ad1e0 |
comparison
equal
deleted
inserted
replaced
38466:2c2e82469b89 | 38467:09b09fe7ee90 |
---|---|
64 ? .hgignore | 64 ? .hgignore |
65 ? a | 65 ? a |
66 ? b | 66 ? b |
67 ? x/ | 67 ? x/ |
68 ? y/ | 68 ? y/ |
69 | |
70 Run from subdirectory | |
71 $ hg status --terse u --cwd x/l | |
72 ? .hgignore | |
73 ? a | |
74 ? b | |
75 ? x/ | |
76 ? y/ | |
77 $ relstatus() { | |
78 > hg status --terse u --config commands.status.relative=1 "$@"; | |
79 > } | |
80 This should probably have {"l/", "m/", "n/"} instead of {"."}. They should | |
81 probably come after "../y/". | |
82 $ relstatus --cwd x | |
83 ? ../.hgignore | |
84 ? ../a | |
85 ? ../b | |
86 ? . | |
87 ? ../y/ | |
88 This should probably have {"u/", "../m/", "../n/"} instead of {"../"}. | |
89 $ relstatus --cwd x/l | |
90 ? ../../.hgignore | |
91 ? ../../a | |
92 ? ../../b | |
93 ? ../ | |
94 ? ../../y/ | |
95 This should probably have {"a/", "bb", "../aa", "../../m/", "../../n/"} | |
96 instead of {"../../"}. | |
97 $ relstatus --cwd x/l/u | |
98 ? ../../../.hgignore | |
99 ? ../../../a | |
100 ? ../../../b | |
101 ? ../../ | |
102 ? ../../../y/ | |
103 This should probably have {"bb", "../bb", "../../aa", "../../../m/", | |
104 "../../../n/"} instead of {"../../../"}. | |
105 $ relstatus --cwd x/l/u/a | |
106 ? ../../../../.hgignore | |
107 ? ../../../../a | |
108 ? ../../../../b | |
109 ? ../../../ | |
110 ? ../../../../y/ | |
69 | 111 |
70 $ hg add x/aa x/bb .hgignore | 112 $ hg add x/aa x/bb .hgignore |
71 $ hg status --terse au | 113 $ hg status --terse au |
72 A .hgignore | 114 A .hgignore |
73 A x/aa | 115 A x/aa |