##// END OF EJS Templates
addremove: don't audit the path for paths already in the dirstate...
Durham Goode -
r18626:b114e41c default
parent child Browse files
Show More
@@ -752,17 +752,14 b' def addremove(repo, pats=[], opts={}, dr'
752 752 ctx = repo[None]
753 753 walkresults = repo.dirstate.walk(m, sorted(ctx.substate), True, False)
754 754 for abs in sorted(walkresults):
755 good = audit_path.check(abs)
756
757 755 st = walkresults[abs]
758 756 dstate = repo.dirstate[abs]
759 if good and dstate == '?':
757 if dstate == '?' and audit_path.check(abs):
760 758 unknown.append(abs)
761 759 if repo.ui.verbose or not m.exact(abs):
762 760 rel = m.rel(abs)
763 761 repo.ui.status(_('adding %s\n') % ((pats and rel) or abs))
764 elif (dstate != 'r' and
765 (not good or not st or
762 elif (dstate != 'r' and (not st or
766 763 (stat.S_ISDIR(st.st_mode) and not stat.S_ISLNK(st.st_mode)))):
767 764 deleted.append(abs)
768 765 if repo.ui.verbose or not m.exact(abs):
General Comments 0
You need to be logged in to leave comments. Login now