Show More
@@ -184,6 +184,13 b' class pathauditor(object):' | |||||
184 | # want to add "foo/bar/baz" before checking if there's a "foo/.hg" |
|
184 | # want to add "foo/bar/baz" before checking if there's a "foo/.hg" | |
185 | self.auditeddir.update(prefixes) |
|
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 | class abstractvfs(object): |
|
194 | class abstractvfs(object): | |
188 | """Abstract base class; cannot be instantiated""" |
|
195 | """Abstract base class; cannot be instantiated""" | |
189 |
|
196 | |||
@@ -745,11 +752,7 b' def addremove(repo, pats=[], opts={}, dr' | |||||
745 | ctx = repo[None] |
|
752 | ctx = repo[None] | |
746 | walkresults = repo.dirstate.walk(m, sorted(ctx.substate), True, False) |
|
753 | walkresults = repo.dirstate.walk(m, sorted(ctx.substate), True, False) | |
747 | for abs in sorted(walkresults): |
|
754 | for abs in sorted(walkresults): | |
748 |
good = |
|
755 | good = audit_path.check(abs) | |
749 | try: |
|
|||
750 | audit_path(abs) |
|
|||
751 | except (OSError, util.Abort): |
|
|||
752 | good = False |
|
|||
753 |
|
756 | |||
754 | st = walkresults[abs] |
|
757 | st = walkresults[abs] | |
755 | dstate = repo.dirstate[abs] |
|
758 | dstate = repo.dirstate[abs] |
General Comments 0
You need to be logged in to leave comments.
Login now