mercurial/cmdutil.py
changeset 8941 37a9d551346c
parent 8798 92fc57c9f9d1
child 8987 c68ccda3451b
--- 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)