##// END OF EJS Templates
pathauditor: add check() method...
Durham Goode -
r18624:4db216b1 default
parent child Browse files
Show More
@@ -184,6 +184,13 b' class pathauditor(object):'
184 184 # want to add "foo/bar/baz" before checking if there's a "foo/.hg"
185 185 self.auditeddir.update(prefixes)
186 186
187 def check(self, path):
188 try:
189 self(path)
190 return True
191 except (OSError, util.Abort):
192 return False
193
187 194 class abstractvfs(object):
188 195 """Abstract base class; cannot be instantiated"""
189 196
@@ -745,11 +752,7 b' def addremove(repo, pats=[], opts={}, dr'
745 752 ctx = repo[None]
746 753 walkresults = repo.dirstate.walk(m, sorted(ctx.substate), True, False)
747 754 for abs in sorted(walkresults):
748 good = True
749 try:
750 audit_path(abs)
751 except (OSError, util.Abort):
752 good = False
755 good = audit_path.check(abs)
753 756
754 757 st = walkresults[abs]
755 758 dstate = repo.dirstate[abs]
General Comments 0
You need to be logged in to leave comments. Login now