##// END OF EJS Templates
addremove: drop some silly variable assignments
Matt Mackall -
r8941:37a9d551 default
parent child Browse files
Show More
@@ -323,12 +323,10 b' def addremove(repo, pats=[], opts={}, dr'
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
General Comments 0
You need to be logged in to leave comments. Login now