##// END OF EJS Templates
narrow: avoid looking up dirstate again when editing dirstate...
Martin von Zweigbergk -
r39996:1a7d901a default
parent child Browse files
Show More
@@ -18,10 +18,9 b' def wrapdirstate(repo, dirstate):'
18 18
19 19 def _editfunc(fn):
20 20 def _wrapper(self, *args):
21 dirstate = repo.dirstate
22 21 narrowmatch = repo.narrowmatch()
23 22 for f in args:
24 if f is not None and not narrowmatch(f) and f not in dirstate:
23 if f is not None and not narrowmatch(f) and f not in self:
25 24 raise error.Abort(_("cannot track '%s' - it is outside " +
26 25 "the narrow clone") % f)
27 26 return fn(self, *args)
General Comments 0
You need to be logged in to leave comments. Login now