rhg: test `rhg files --config ui.relative-paths ...`
authorArseniy Alekseyev <aalekseyev@janestreet.com>
Mon, 29 May 2023 16:47:39 +0100
changeset 50538 a7513d0d451b
parent 50537 6a019a037085
child 50539 74e4dbb0fcd5
rhg: test `rhg files --config ui.relative-paths ...` Add some tests. All of these are falling back for now, will be fixed in follow-up commits.
tests/test-rhg.t
--- a/tests/test-rhg.t	Thu Jun 01 12:05:32 2023 +0100
+++ b/tests/test-rhg.t	Mon May 29 16:47:39 2023 +0100
@@ -71,6 +71,18 @@
   ../../../file2
   ../../../file3
 
+  $ $NO_FALLBACK rhg files --config ui.relative-paths=legacy
+  unsupported feature: non-default ui.relative-paths
+  [252]
+
+  $ $NO_FALLBACK rhg files --config ui.relative-paths=false
+  unsupported feature: non-default ui.relative-paths
+  [252]
+
+  $ $NO_FALLBACK rhg files --config ui.relative-paths=true
+  unsupported feature: non-default ui.relative-paths
+  [252]
+
 Listing tracked files through broken pipe
   $ $NO_FALLBACK rhg files | head -n 1
   ../../../file1