Show More
@@ -265,10 +265,9 b' def _setupdirstate(ui):' | |||||
265 | repo = self.repo |
|
265 | repo = self.repo | |
266 | sparsematch = sparse.matcher(repo) |
|
266 | sparsematch = sparse.matcher(repo) | |
267 | if not sparsematch.always(): |
|
267 | if not sparsematch.always(): | |
268 | dirstate = repo.dirstate |
|
|||
269 | for f in args: |
|
268 | for f in args: | |
270 | if (f is not None and not sparsematch(f) and |
|
269 | if (f is not None and not sparsematch(f) and | |
271 |
f not in |
|
270 | f not in self): | |
272 | raise error.Abort(_("cannot add '%s' - it is outside " |
|
271 | raise error.Abort(_("cannot add '%s' - it is outside " | |
273 | "the sparse checkout") % f, |
|
272 | "the sparse checkout") % f, | |
274 | hint=hint) |
|
273 | hint=hint) |
General Comments 0
You need to be logged in to leave comments.
Login now