diff mercurial/cmdutil.py @ 8941:37a9d551346c

addremove: drop some silly variable assignments
author Matt Mackall <mpm@selenic.com>
date Tue, 23 Jun 2009 17:51:51 -0500
parents 92fc57c9f9d1
children c68ccda3451b
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)