addremove: drop some silly variable assignments
authorMatt Mackall <mpm@selenic.com>
Tue, 23 Jun 2009 17:51:51 -0500
changeset 8941 37a9d551346c
parent 8940 01ada7b1861d
child 8942 51038bb526ea
addremove: drop some silly variable assignments
mercurial/cmdutil.py
--- 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)