comparison 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
comparison
equal deleted inserted replaced
8940:01ada7b1861d 8941:37a9d551346c
321 if not dry_run: 321 if not dry_run:
322 repo.remove(remove) 322 repo.remove(remove)
323 repo.add(add) 323 repo.add(add)
324 if similarity > 0: 324 if similarity > 0:
325 for old, new, score in findrenames(repo, m, similarity): 325 for old, new, score in findrenames(repo, m, similarity):
326 oldexact, newexact = m.exact(old), m.exact(new) 326 if repo.ui.verbose or not m.exact(old) or not m.exact(new):
327 if repo.ui.verbose or not oldexact or not newexact:
328 oldrel, newrel = m.rel(old), m.rel(new)
329 repo.ui.status(_('recording removal of %s as rename to %s ' 327 repo.ui.status(_('recording removal of %s as rename to %s '
330 '(%d%% similar)\n') % 328 '(%d%% similar)\n') %
331 (oldrel, newrel, score * 100)) 329 (m.rel(old), m.rel(new), score * 100))
332 if not dry_run: 330 if not dry_run:
333 repo.copy(old, new) 331 repo.copy(old, new)
334 332
335 def copy(ui, repo, pats, opts, rename=False): 333 def copy(ui, repo, pats, opts, rename=False):
336 # called with the repo lock held 334 # called with the repo lock held