##// END OF EJS Templates
dirstate.walk: pull skipstep3 out of the explicit walk code...
Siddharth Agarwal -
r19172:c6cea2e2 default
parent child Browse files
Show More
@@ -620,7 +620,6 b' class dirstate(object):'
620 st = lstat(join(nf))
620 st = lstat(join(nf))
621 kind = getkind(st.st_mode)
621 kind = getkind(st.st_mode)
622 if kind == dirkind:
622 if kind == dirkind:
623 skipstep3 = False
624 if nf in dmap:
623 if nf in dmap:
625 #file deleted on disk but still in dirstate
624 #file deleted on disk but still in dirstate
626 results[nf] = None
625 results[nf] = None
@@ -643,11 +642,11 b' class dirstate(object):'
643 if matchedir:
642 if matchedir:
644 matchedir(nf)
643 matchedir(nf)
645 dirsnotfound.append(nf)
644 dirsnotfound.append(nf)
646 skipstep3 = False
647 break
645 break
648 else:
646 else:
649 badfn(ff, inst.strerror)
647 badfn(ff, inst.strerror)
650
648
649 skipstep3 = skipstep3 and not (work or dirsnotfound)
651 work = [d for d in work if not dirignore(d)]
650 work = [d for d in work if not dirignore(d)]
652 wadd = work.append
651 wadd = work.append
653
652
General Comments 0
You need to be logged in to leave comments. Login now