comparison tests/test-walk.out @ 4188:dd0d9bd91e0a

dirstate.statwalk: explicitly test for ignored directories This removes a hack where we appended '/' to a dirname so that: - it would not appear on the "dc" dict - it would always be matched by the match function This was a contorted way of checking if the directory was matched by some hgignore pattern, and it would still fail with some uses of --include/--exclude patterns. Things would still work fine if we removed the check altogether and just appended things to "work" directly, but then we would end up walking ignored directories too, which could be quite a bit of work. This allows further simplification of the match function returned by util._matcher, and fixes walking the working directory with a --include pattern that matches only the end of a name.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sat, 10 Mar 2007 23:00:54 -0300
parents 9814d600011e
children 0d51eb296fb9 ef1f1a4b2efb
comparison
equal deleted inserted replaced
4187:9814d600011e 4188:dd0d9bd91e0a
71 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi 71 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
72 f mammals/Procyonidae/raccoon Procyonidae/raccoon 72 f mammals/Procyonidae/raccoon Procyonidae/raccoon
73 f mammals/skunk skunk 73 f mammals/skunk skunk
74 74
75 hg debugwalk -I *k 75 hg debugwalk -I *k
76 m mammals/skunk skunk 76 f mammals/skunk skunk
77 77
78 hg debugwalk -I glob:*k 78 hg debugwalk -I glob:*k
79 m mammals/skunk skunk 79 f mammals/skunk skunk
80 80
81 hg debugwalk -I relglob:*k 81 hg debugwalk -I relglob:*k
82 f beans/black ../beans/black
82 f fenugreek ../fenugreek 83 f fenugreek ../fenugreek
83 m beans/black ../beans/black 84 f mammals/skunk skunk
84 m mammals/skunk skunk
85 85
86 hg debugwalk -I relglob:*k . 86 hg debugwalk -I relglob:*k .
87 f mammals/skunk skunk 87 f mammals/skunk skunk
88 88
89 hg debugwalk -I re:.*k$ 89 hg debugwalk -I re:.*k$
90 f beans/black ../beans/black
90 f fenugreek ../fenugreek 91 f fenugreek ../fenugreek
91 m beans/black ../beans/black 92 f mammals/skunk skunk
92 m mammals/skunk skunk
93 93
94 hg debugwalk -I relre:.*k$ 94 hg debugwalk -I relre:.*k$
95 f beans/black ../beans/black
95 f fenugreek ../fenugreek 96 f fenugreek ../fenugreek
96 m beans/black ../beans/black 97 f mammals/skunk skunk
97 m mammals/skunk skunk
98 98
99 hg debugwalk -I path:beans 99 hg debugwalk -I path:beans
100 f beans/black ../beans/black 100 f beans/black ../beans/black
101 f beans/borlotti ../beans/borlotti 101 f beans/borlotti ../beans/borlotti
102 f beans/kidney ../beans/kidney 102 f beans/kidney ../beans/kidney