diff tests/test-clone.t @ 42419:69883775b27d

root: add template variables pointing to repository directories These paths are useful for GUI applications to detect changes. A GUI process typically monitors .hg and .hg/store directories so that it will be notified on lock/wlock deletion. Alternatively, maybe we can add debugpaths command if we don't want to extend the root command. I'm not sure which will be nicer.
author Yuya Nishihara <yuya@tcha.org>
date Tue, 04 Jun 2019 21:13:35 +0900
parents e4ac7e63c213
children 34a46d48d24e
line wrap: on
line diff
--- a/tests/test-clone.t	Tue Jun 04 20:58:39 2019 +0900
+++ b/tests/test-clone.t	Tue Jun 04 21:13:35 2019 +0900
@@ -719,6 +719,14 @@
   $ hg -R src debugrevlog -c | egrep 'format|flags'
   format : 0
   flags  : (none)
+  $ hg root -R src -T json | sed 's|\\\\|\\|g'
+  [
+   {
+    "hgpath": "$TESTTMP/src/.hg",
+    "reporoot": "$TESTTMP/src",
+    "storepath": "$TESTTMP/src/.hg"
+   }
+  ]
   $ hg clone -U -q src dst
   $ hg -R dst log -q
   0:e1bab28bca43