##// END OF EJS Templates
dirstate.status: avoid full walks when possible
Siddharth Agarwal -
r19191:ab9de1e8 default
parent child Browse files
Show More
@@ -807,8 +807,13 b' class dirstate(object):'
807 807
808 808 lnkkind = stat.S_IFLNK
809 809
810 for fn, st in self.walk(match, subrepos, listunknown,
811 listignored).iteritems():
810 # We need to do full walks when either
811 # - we're listing all clean files, or
812 # - match.traversedir does something, because match.traversedir should
813 # be called for every dir in the working dir
814 full = listclean or match.traversedir is not None
815 for fn, st in self.walk(match, subrepos, listunknown, listignored,
816 full=full).iteritems():
812 817 if fn not in dmap:
813 818 if (listignored or mexact(fn)) and dirignore(fn):
814 819 if listignored:
General Comments 0
You need to be logged in to leave comments. Login now