mercurial/crew
changeset 8941:37a9d551346c
addremove: drop some silly variable assignments
| author | Matt Mackall <mpm@selenic.com> |
|---|---|
| date | Tue Jun 23 17:51:51 2009 -0500 (7 months ago) |
| parents | 01ada7b1861d |
| children | 51038bb526ea |
| files | mercurial/cmdutil.py |
line diff
1.1 --- a/mercurial/cmdutil.py 1.2 +++ b/mercurial/cmdutil.py 1.3 @@ -323,12 +323,10 @@ 1.4 repo.add(add) 1.5 if similarity > 0: 1.6 for old, new, score in findrenames(repo, m, similarity): 1.7 - oldexact, newexact = m.exact(old), m.exact(new) 1.8 - if repo.ui.verbose or not oldexact or not newexact: 1.9 - oldrel, newrel = m.rel(old), m.rel(new) 1.10 + if repo.ui.verbose or not m.exact(old) or not m.exact(new): 1.11 repo.ui.status(_('recording removal of %s as rename to %s ' 1.12 '(%d%% similar)\n') % 1.13 - (oldrel, newrel, score * 100)) 1.14 + (m.rel(old), m.rel(new), score * 100)) 1.15 if not dry_run: 1.16 repo.copy(old, new) 1.17
