# HG changeset patch # User Matt Mackall # Date 1245797511 18000 # Node ID 37a9d551346c36a170801f9624ba20451105c1dd # Parent 01ada7b1861d145fd80de0d2b657ea1bbd907f6c addremove: drop some silly variable assignments diff -r 01ada7b1861d -r 37a9d551346c 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)