changeset 8941:37a9d551346c

addremove: drop some silly variable assignments
author Matt Mackall <mpm@selenic.com>
date Tue, 23 Jun 2009 17:51:51 -0500
parents 01ada7b1861d
children 51038bb526ea
files mercurial/cmdutil.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Sun Jun 21 03:13:38 2009 +0200
+++ b/mercurial/cmdutil.py	Tue Jun 23 17:51:51 2009 -0500
@@ -323,12 +323,10 @@
         repo.add(add)
     if similarity > 0:
         for old, new, score in findrenames(repo, m, similarity):
-            oldexact, newexact = m.exact(old), m.exact(new)
-            if repo.ui.verbose or not oldexact or not newexact:
-                oldrel, newrel = m.rel(old), m.rel(new)
+            if repo.ui.verbose or not m.exact(old) or not m.exact(new):
                 repo.ui.status(_('recording removal of %s as rename to %s '
                                  '(%d%% similar)\n') %
-                               (oldrel, newrel, score * 100))
+                               (m.rel(old), m.rel(new), score * 100))
             if not dry_run:
                 repo.copy(old, new)