diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -730,11 +730,10 @@ def addremove(repo, pats=[], opts={}, dr toprint.update(deleted) for abs in sorted(toprint): if repo.ui.verbose or not m.exact(abs): - rel = m.rel(abs) if abs in unknownset: - status = _('adding %s\n') % ((m.anypats() and rel) or abs) + status = _('adding %s\n') % m.uipath(abs) else: - status = _('removing %s\n') % ((m.anypats() and rel) or abs) + status = _('removing %s\n') % m.uipath(abs) repo.ui.status(status) renames = _findrenames(repo, m, added + unknown, removed + deleted, diff --git a/tests/test-addremove-similar.t b/tests/test-addremove-similar.t --- a/tests/test-addremove-similar.t +++ b/tests/test-addremove-similar.t @@ -91,7 +91,7 @@ Issue1527: repeated addremove causes uti no copies found here (since the target isn't in d $ hg addremove -s80 d - removing d/b + removing d/b (glob) copies here