##// END OF EJS Templates
dirstate: minor status cleanups
Matt Mackall -
r6591:eda3fd32 default
parent child Browse files
Show More
@@ -589,15 +589,16 b' class dirstate(object):'
589
589
590 for src, fn, st in self.statwalk(files, match, unknown=list_unknown,
590 for src, fn, st in self.statwalk(files, match, unknown=list_unknown,
591 ignored=list_ignored):
591 ignored=list_ignored):
592 if fn in dmap:
592 if fn not in dmap:
593 state, mode, size, time, foo = dmap[fn]
594 else:
595 if (list_ignored or fn in files) and self._dirignore(fn):
593 if (list_ignored or fn in files) and self._dirignore(fn):
596 if list_ignored:
594 if list_ignored:
597 iadd(fn)
595 iadd(fn)
598 elif list_unknown:
596 elif list_unknown:
599 uadd(fn)
597 uadd(fn)
600 continue
598 continue
599
600 state, mode, size, time, foo = dmap[fn]
601
601 if src == 'm':
602 if src == 'm':
602 nonexistent = True
603 nonexistent = True
603 if not st:
604 if not st:
@@ -610,8 +611,6 b' class dirstate(object):'
610 # We need to re-check that it is a valid file
611 # We need to re-check that it is a valid file
611 if st and self._supported(fn, st.st_mode):
612 if st and self._supported(fn, st.st_mode):
612 nonexistent = False
613 nonexistent = False
613 # XXX: what to do with file no longer present in the fs
614 # who are not removed in the dirstate ?
615 if nonexistent and state in "nma":
614 if nonexistent and state in "nma":
616 dadd(fn)
615 dadd(fn)
617 continue
616 continue
General Comments 0
You need to be logged in to leave comments. Login now