##// END OF EJS Templates
context: use 'changectx.dirs()' in 'walk()' for directory patterns...
FUJIWARA Katsunori -
r16145:616c2e27 stable
parent child Browse files
Show More
@@ -206,14 +206,15 b' class changectx(object):'
206 # follow that here, too
206 # follow that here, too
207 fset.discard('.')
207 fset.discard('.')
208 for fn in self:
208 for fn in self:
209 for ffn in fset:
209 if fn in fset:
210 # match if the file is the exact name or a directory
210 # specified pattern is the exact name
211 if ffn == fn or fn.startswith("%s/" % ffn):
211 fset.remove(fn)
212 fset.remove(ffn)
213 break
214 if match(fn):
212 if match(fn):
215 yield fn
213 yield fn
216 for fn in sorted(fset):
214 for fn in sorted(fset):
215 if fn in self._dirs:
216 # specified pattern is a directory
217 continue
217 if match.bad(fn, _('no such file in rev %s') % self) and match(fn):
218 if match.bad(fn, _('no such file in rev %s') % self) and match(fn):
218 yield fn
219 yield fn
219
220
General Comments 0
You need to be logged in to leave comments. Login now