Show More
@@ -387,7 +387,10 b' class dirstate(object):' | |||||
387 | return False |
|
387 | return False | |
388 | return match(file_) |
|
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 | # self.root may end with a path separator when self.root == '/' |
|
395 | # self.root may end with a path separator when self.root == '/' | |
393 | common_prefix_len = len(self.root) |
|
396 | common_prefix_len = len(self.root) | |
@@ -420,8 +423,7 b' class dirstate(object):' | |||||
420 | # don't trip over symlinks |
|
423 | # don't trip over symlinks | |
421 | st = os.lstat(p) |
|
424 | st = os.lstat(p) | |
422 | if stat.S_ISDIR(st.st_mode): |
|
425 | if stat.S_ISDIR(st.st_mode): | |
423 | ds = util.pconvert(os.path.join(nd, f +'/')) |
|
426 | if not ignore(p): | |
424 | if imatch(ds): |
|
|||
425 | work.append(p) |
|
427 | work.append(p) | |
426 | if imatch(np) and np in dc: |
|
428 | if imatch(np) and np in dc: | |
427 | yield 'm', np, st |
|
429 | yield 'm', np, st |
@@ -509,8 +509,7 b' def _matcher(canonroot, cwd, names, inc,' | |||||
509 | excmatch = matchfn(exckinds, '(?:/|$)') |
|
509 | excmatch = matchfn(exckinds, '(?:/|$)') | |
510 |
|
510 | |||
511 | return (roots, |
|
511 | return (roots, | |
512 | lambda fn: (incmatch(fn) and not excmatch(fn) and |
|
512 | lambda fn: (incmatch(fn) and not excmatch(fn) and patmatch(fn)), | |
513 | (fn.endswith('/') or patmatch(fn))), |
|
|||
514 | (inc or exc or anypats) and True) |
|
513 | (inc or exc or anypats) and True) | |
515 |
|
514 | |||
516 | def system(cmd, environ={}, cwd=None, onerr=None, errprefix=None): |
|
515 | def system(cmd, environ={}, cwd=None, onerr=None, errprefix=None): |
@@ -73,28 +73,28 b' f mammals/Procyonidae/raccoon Procy' | |||||
73 | f mammals/skunk skunk |
|
73 | f mammals/skunk skunk | |
74 |
|
74 | |||
75 | hg debugwalk -I *k |
|
75 | hg debugwalk -I *k | |
76 |
|
|
76 | f mammals/skunk skunk | |
77 |
|
77 | |||
78 | hg debugwalk -I glob:*k |
|
78 | hg debugwalk -I glob:*k | |
79 |
|
|
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 |
General Comments 0
You need to be logged in to leave comments.
Login now