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