comparison 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
comparison
equal deleted inserted replaced
25192:36111f98f23d 25193:ccb1623266eb
207 sub1/foo (glob) 207 sub1/foo (glob)
208 sub1/sub1 (glob) 208 sub1/sub1 (glob)
209 sub1/sub2/folder/bar (glob) 209 sub1/sub2/folder/bar (glob)
210 sub1/sub2/x.txt (glob) 210 sub1/sub2/x.txt (glob)
211 211
212 $ hg files -S -r '.^' sub1/sub2/folder
213 sub1/sub2/folder/test.txt (glob)
214
215 $ hg files -S -r '.^' sub1/sub2/missing
216 sub1/sub2/missing: no such file in rev 78026e779ea6 (glob)
217 [1]
218
212 $ hg rollback -q 219 $ hg rollback -q
213 $ hg up -Cq 220 $ hg up -Cq
214 221
215 $ hg --config extensions.largefiles=! archive -S ../archive_all 222 $ hg --config extensions.largefiles=! archive -S ../archive_all
216 $ find ../archive_all | sort 223 $ find ../archive_all | sort