diff tests/test-subrepo-deep-nested-change.t @ 25193:ccb1623266eb stable

context: don't complain about a matcher's subrepo paths in changectx.walk() Previously, the first added test printed the following: $ hg files -S -r '.^' sub1/sub2/folder sub1/sub2/folder: no such file in rev 9bb10eebee29 sub1/sub2/folder: no such file in rev 9bb10eebee29 sub1/sub2/folder/test.txt One warning occured each time a subrepo was crossed into. The second test ensures that the matcher copy stays in place. Without the copy, the bad() function becomes an increasingly longer chain, and no message would be printed out for a file missing in the subrepo because the predicate would match in one of the replaced methods. Manifest doesn't know anything about subrepos, so it needs help ignoring subrepos when complaining about bad files.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 17 May 2015 01:06:10 -0400
parents 41cd8171e58f
children ef4538ba67ef
line wrap: on
line diff
--- a/tests/test-subrepo-deep-nested-change.t	Mon May 18 22:35:27 2015 -0500
+++ b/tests/test-subrepo-deep-nested-change.t	Sun May 17 01:06:10 2015 -0400
@@ -209,6 +209,13 @@
   sub1/sub2/folder/bar (glob)
   sub1/sub2/x.txt (glob)
 
+  $ hg files -S -r '.^' sub1/sub2/folder
+  sub1/sub2/folder/test.txt (glob)
+
+  $ hg files -S -r '.^' sub1/sub2/missing
+  sub1/sub2/missing: no such file in rev 78026e779ea6 (glob)
+  [1]
+
   $ hg rollback -q
   $ hg up -Cq