Show More
@@ -481,7 +481,7 b' class workingbackend(fsbackend):' | |||
|
481 | 481 | |
|
482 | 482 | def close(self): |
|
483 | 483 | wctx = self.repo[None] |
|
484 |
|
|
|
484 | changed = set(self.changed) | |
|
485 | 485 | for src, dst in self.copied: |
|
486 | 486 | scmutil.dirstatecopy(self.ui, self.repo, wctx, src, dst) |
|
487 | 487 | if self.removed: |
@@ -491,14 +491,10 b' class workingbackend(fsbackend):' | |||
|
491 | 491 | # File was deleted and no longer belongs to the |
|
492 | 492 | # dirstate, it was probably marked added then |
|
493 | 493 | # deleted, and should not be considered by |
|
494 |
# |
|
|
495 |
|
|
|
496 |
if |
|
|
497 | cwd = self.repo.getcwd() | |
|
498 | if cwd: | |
|
499 | addremoved = [util.pathto(self.repo.root, cwd, f) | |
|
500 | for f in addremoved] | |
|
501 | scmutil.addremove(self.repo, addremoved, similarity=self.similarity) | |
|
494 | # marktouched(). | |
|
495 | changed.discard(f) | |
|
496 | if changed: | |
|
497 | scmutil.marktouched(self.repo, changed, self.similarity) | |
|
502 | 498 | return sorted(self.changed) |
|
503 | 499 | |
|
504 | 500 | class filestore(object): |
@@ -1397,12 +1393,7 b' def _externalpatch(ui, repo, patcher, pa' | |||
|
1397 | 1393 | ui.warn(line + '\n') |
|
1398 | 1394 | finally: |
|
1399 | 1395 | if files: |
|
1400 | cfiles = list(files) | |
|
1401 | cwd = repo.getcwd() | |
|
1402 | if cwd: | |
|
1403 | cfiles = [util.pathto(repo.root, cwd, f) | |
|
1404 | for f in cfiles] | |
|
1405 | scmutil.addremove(repo, cfiles, similarity=similarity) | |
|
1396 | scmutil.marktouched(repo, files, similarity) | |
|
1406 | 1397 | code = fp.close() |
|
1407 | 1398 | if code: |
|
1408 | 1399 | raise PatchError(_("patch command failed: %s") % |
General Comments 0
You need to be logged in to leave comments.
Login now