Show More
@@ -18,10 +18,9 b' def wrapdirstate(repo, dirstate):' | |||||
18 |
|
18 | |||
19 | def _editfunc(fn): |
|
19 | def _editfunc(fn): | |
20 | def _wrapper(self, *args): |
|
20 | def _wrapper(self, *args): | |
21 | dirstate = repo.dirstate |
|
|||
22 | narrowmatch = repo.narrowmatch() |
|
21 | narrowmatch = repo.narrowmatch() | |
23 | for f in args: |
|
22 | for f in args: | |
24 |
if f is not None and not narrowmatch(f) and f not in |
|
23 | if f is not None and not narrowmatch(f) and f not in self: | |
25 | raise error.Abort(_("cannot track '%s' - it is outside " + |
|
24 | raise error.Abort(_("cannot track '%s' - it is outside " + | |
26 | "the narrow clone") % f) |
|
25 | "the narrow clone") % f) | |
27 | return fn(self, *args) |
|
26 | return fn(self, *args) |
General Comments 0
You need to be logged in to leave comments.
Login now