##// END OF EJS Templates
dirstate.walk: move dirignore filter out of explicit walk code...
Siddharth Agarwal -
r19171:252de7b7 default
parent child Browse files
Show More
@@ -626,7 +626,6 b' class dirstate(object):'
626 results[nf] = None
626 results[nf] = None
627 if matchedir:
627 if matchedir:
628 matchedir(nf)
628 matchedir(nf)
629 if not dirignore(nf):
630 wadd(nf)
629 wadd(nf)
631 elif kind == regkind or kind == lnkkind:
630 elif kind == regkind or kind == lnkkind:
632 results[nf] = st
631 results[nf] = st
@@ -649,6 +648,9 b' class dirstate(object):'
649 else:
648 else:
650 badfn(ff, inst.strerror)
649 badfn(ff, inst.strerror)
651
650
651 work = [d for d in work if not dirignore(d)]
652 wadd = work.append
653
652 # step 2: visit subdirectories
654 # step 2: visit subdirectories
653 while work:
655 while work:
654 nd = work.pop()
656 nd = work.pop()
General Comments 0
You need to be logged in to leave comments. Login now