comparison tests/test-walk @ 6032:b41f0d6a74fc

dirstate: don't walk ignored directories With a pattern like '^directory$' in .hgignore, a "hg status directory" would still walk "directory" and all its subdirs. This is the first half of a fix for issue886.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Fri, 08 Feb 2008 18:07:55 -0200
parents d4f0405fadac
children cfb4a51da7d5
comparison
equal deleted inserted replaced
6031:7383384793fb 6032:b41f0d6a74fc
90 debugwalk fenugreek 90 debugwalk fenugreek
91 hg rm fenugreek 91 hg rm fenugreek
92 debugwalk fenugreek 92 debugwalk fenugreek
93 touch new 93 touch new
94 debugwalk new 94 debugwalk new
95
96 mkdir ignored
97 touch ignored/file
98 echo '^ignored$' > .hgignore
99 debugwalk ignored
100 debugwalk ignored/file
101
95 chdir .. 102 chdir ..
96 debugwalk -R t t/mammals/skunk 103 debugwalk -R t t/mammals/skunk
97 mkdir t2 104 mkdir t2
98 chdir t2 105 chdir t2
99 debugwalk -R ../t ../t/mammals/skunk 106 debugwalk -R ../t ../t/mammals/skunk