##// END OF EJS Templates
status: rename type_ to state
Matt Mackall -
r6590:9f80e062 default
parent child Browse files
Show More
@@ -590,7 +590,7 b' class dirstate(object):'
590 590 for src, fn, st in self.statwalk(files, match, unknown=list_unknown,
591 591 ignored=list_ignored):
592 592 if fn in dmap:
593 type_, mode, size, time, foo = dmap[fn]
593 state, mode, size, time, foo = dmap[fn]
594 594 else:
595 595 if (list_ignored or fn in files) and self._dirignore(fn):
596 596 if list_ignored:
@@ -612,11 +612,11 b' class dirstate(object):'
612 612 nonexistent = False
613 613 # XXX: what to do with file no longer present in the fs
614 614 # who are not removed in the dirstate ?
615 if nonexistent and type_ in "nma":
615 if nonexistent and state in "nma":
616 616 dadd(fn)
617 617 continue
618 618 # check the common case first
619 if type_ == 'n':
619 if state == 'n':
620 620 if not st:
621 621 st = lstat(_join(fn))
622 622 if (size >= 0 and
@@ -629,11 +629,11 b' class dirstate(object):'
629 629 ladd(fn)
630 630 elif list_clean:
631 631 cadd(fn)
632 elif type_ == 'm':
632 elif state == 'm':
633 633 madd(fn)
634 elif type_ == 'a':
634 elif state == 'a':
635 635 aadd(fn)
636 elif type_ == 'r':
636 elif state == 'r':
637 637 radd(fn)
638 638
639 639 return (lookup, modified, added, removed, deleted, unknown, ignored,
General Comments 0
You need to be logged in to leave comments. Login now