Show More
@@ -703,7 +703,7 b' def addremove(repo, pats=[], opts={}, dr' | |||
|
703 | 703 | status = _('removing %s\n') % ((pats and rel) or abs) |
|
704 | 704 | repo.ui.status(status) |
|
705 | 705 | |
|
706 |
|
|
|
706 | renames = {} | |
|
707 | 707 | if similarity > 0: |
|
708 | 708 | for old, new, score in similar.findrenames(repo, |
|
709 | 709 | added + unknown, removed + deleted, similarity): |
@@ -711,7 +711,7 b' def addremove(repo, pats=[], opts={}, dr' | |||
|
711 | 711 | repo.ui.status(_('recording removal of %s as rename to %s ' |
|
712 | 712 | '(%d%% similar)\n') % |
|
713 | 713 | (m.rel(old), m.rel(new), score * 100)) |
|
714 |
|
|
|
714 | renames[new] = old | |
|
715 | 715 | |
|
716 | 716 | if not dry_run: |
|
717 | 717 | wctx = repo[None] |
@@ -719,7 +719,7 b' def addremove(repo, pats=[], opts={}, dr' | |||
|
719 | 719 | try: |
|
720 | 720 | wctx.forget(deleted) |
|
721 | 721 | wctx.add(unknown) |
|
722 |
for new, old in |
|
|
722 | for new, old in renames.iteritems(): | |
|
723 | 723 | wctx.copy(old, new) |
|
724 | 724 | finally: |
|
725 | 725 | wlock.release() |
General Comments 0
You need to be logged in to leave comments.
Login now