test-treemanifest: ensure manifest command isn't broken
authorAugie Fackler <augie@google.com>
Thu, 28 Jul 2016 16:27:35 -0400
changeset 32625 6943dacc3b4cc062dcc8d1da8a440b42b508542d
parent 32624 f15f31505f12bff1e0401ee63d3420ee157afc95
child 32626 6eb9c8291a788ce1d936c731688b2e4903ba6d3b
push id305
push usergszorc@mozilla.com
push dateSat, 06 Aug 2016 04:42:54 +0000
test-treemanifest: ensure manifest command isn't broken I realized we weren't testing this while hunting a broken manifest command bug that ended up being narrowhg's fault.
tests/test-treemanifest.t
--- a/tests/test-treemanifest.t
+++ b/tests/test-treemanifest.t
@@ -57,16 +57,29 @@ Can add nested directories
   dir1/a (glob)
   dir1/b (glob)
   dir1/dir1/a (glob)
   dir1/dir1/b (glob)
   dir1/dir2/a (glob)
   dir1/dir2/b (glob)
   e
 
+The manifest command works
+
+  $ hg manifest
+  a
+  b
+  dir1/a
+  dir1/b
+  dir1/dir1/a
+  dir1/dir1/b
+  dir1/dir2/a
+  dir1/dir2/b
+  e
+
 Revision is not created for unchanged directory
 
   $ mkdir dir2
   $ echo 3 > dir2/a
   $ hg add dir2
   adding dir2/a (glob)
   $ hg debugindex --dir dir1 > before
   $ hg ci -qm 'add dir2'