D3837: terse: add tests of running from subdirectory
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Jun 26 08:05:40 UTC 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG09b09fe7ee90: terse: add tests of running from subdirectory (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3837?vs=9297&id=9299
REVISION DETAIL
https://phab.mercurial-scm.org/D3837
AFFECTED FILES
tests/test-status-terse.t
CHANGE DETAILS
diff --git a/tests/test-status-terse.t b/tests/test-status-terse.t
--- a/tests/test-status-terse.t
+++ b/tests/test-status-terse.t
@@ -67,6 +67,48 @@
? x/
? y/
+Run from subdirectory
+ $ hg status --terse u --cwd x/l
+ ? .hgignore
+ ? a
+ ? b
+ ? x/
+ ? y/
+ $ relstatus() {
+ > hg status --terse u --config commands.status.relative=1 "$@";
+ > }
+This should probably have {"l/", "m/", "n/"} instead of {"."}. They should
+probably come after "../y/".
+ $ relstatus --cwd x
+ ? ../.hgignore
+ ? ../a
+ ? ../b
+ ? .
+ ? ../y/
+This should probably have {"u/", "../m/", "../n/"} instead of {"../"}.
+ $ relstatus --cwd x/l
+ ? ../../.hgignore
+ ? ../../a
+ ? ../../b
+ ? ../
+ ? ../../y/
+This should probably have {"a/", "bb", "../aa", "../../m/", "../../n/"}
+instead of {"../../"}.
+ $ relstatus --cwd x/l/u
+ ? ../../../.hgignore
+ ? ../../../a
+ ? ../../../b
+ ? ../../
+ ? ../../../y/
+This should probably have {"bb", "../bb", "../../aa", "../../../m/",
+"../../../n/"} instead of {"../../../"}.
+ $ relstatus --cwd x/l/u/a
+ ? ../../../../.hgignore
+ ? ../../../../a
+ ? ../../../../b
+ ? ../../../
+ ? ../../../../y/
+
$ hg add x/aa x/bb .hgignore
$ hg status --terse au
A .hgignore
To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list