Show More
@@ -387,7 +387,10 b' class dirstate(object):' | |||
|
387 | 387 | return False |
|
388 | 388 | return match(file_) |
|
389 | 389 | |
|
390 | if ignored: imatch = match | |
|
390 | ignore = self.ignore | |
|
391 | if ignored: | |
|
392 | imatch = match | |
|
393 | ignore = util.never | |
|
391 | 394 | |
|
392 | 395 | # self.root may end with a path separator when self.root == '/' |
|
393 | 396 | common_prefix_len = len(self.root) |
@@ -420,8 +423,7 b' class dirstate(object):' | |||
|
420 | 423 | # don't trip over symlinks |
|
421 | 424 | st = os.lstat(p) |
|
422 | 425 | if stat.S_ISDIR(st.st_mode): |
|
423 | ds = util.pconvert(os.path.join(nd, f +'/')) | |
|
424 | if imatch(ds): | |
|
426 | if not ignore(p): | |
|
425 | 427 | work.append(p) |
|
426 | 428 | if imatch(np) and np in dc: |
|
427 | 429 | yield 'm', np, st |
@@ -509,8 +509,7 b' def _matcher(canonroot, cwd, names, inc,' | |||
|
509 | 509 | excmatch = matchfn(exckinds, '(?:/|$)') |
|
510 | 510 | |
|
511 | 511 | return (roots, |
|
512 | lambda fn: (incmatch(fn) and not excmatch(fn) and | |
|
513 | (fn.endswith('/') or patmatch(fn))), | |
|
512 | lambda fn: (incmatch(fn) and not excmatch(fn) and patmatch(fn)), | |
|
514 | 513 | (inc or exc or anypats) and True) |
|
515 | 514 | |
|
516 | 515 | def system(cmd, environ={}, cwd=None, onerr=None, errprefix=None): |
@@ -73,28 +73,28 b' f mammals/Procyonidae/raccoon Procy' | |||
|
73 | 73 | f mammals/skunk skunk |
|
74 | 74 | |
|
75 | 75 | hg debugwalk -I *k |
|
76 |
|
|
|
76 | f mammals/skunk skunk | |
|
77 | 77 | |
|
78 | 78 | hg debugwalk -I glob:*k |
|
79 |
|
|
|
79 | f mammals/skunk skunk | |
|
80 | 80 | |
|
81 | 81 | hg debugwalk -I relglob:*k |
|
82 | f beans/black ../beans/black | |
|
82 | 83 | f fenugreek ../fenugreek |
|
83 | m beans/black ../beans/black | |
|
84 | m mammals/skunk skunk | |
|
84 | f mammals/skunk skunk | |
|
85 | 85 | |
|
86 | 86 | hg debugwalk -I relglob:*k . |
|
87 | 87 | f mammals/skunk skunk |
|
88 | 88 | |
|
89 | 89 | hg debugwalk -I re:.*k$ |
|
90 | f beans/black ../beans/black | |
|
90 | 91 | f fenugreek ../fenugreek |
|
91 | m beans/black ../beans/black | |
|
92 | m mammals/skunk skunk | |
|
92 | f mammals/skunk skunk | |
|
93 | 93 | |
|
94 | 94 | hg debugwalk -I relre:.*k$ |
|
95 | f beans/black ../beans/black | |
|
95 | 96 | f fenugreek ../fenugreek |
|
96 | m beans/black ../beans/black | |
|
97 | m mammals/skunk skunk | |
|
97 | f mammals/skunk skunk | |
|
98 | 98 | |
|
99 | 99 | hg debugwalk -I path:beans |
|
100 | 100 | f beans/black ../beans/black |
General Comments 0
You need to be logged in to leave comments.
Login now