diff -r 28ce9184d495 -r 0cbf491db7ee mercurial/cmdutil.py --- a/mercurial/cmdutil.py Fri Feb 08 13:54:20 2019 -0800 +++ b/mercurial/cmdutil.py Fri Feb 08 13:00:28 2019 -0800 @@ -2193,7 +2193,7 @@ ret = 0 except error.LookupError: ui.status(_("skipping missing subrepository: %s\n") - % m.rel(subpath)) + % uipathfn(subpath)) return ret @@ -2825,7 +2825,7 @@ for f in names: if f.startswith(path_): return - ui.warn("%s: %s\n" % (m.rel(path), msg)) + ui.warn("%s: %s\n" % (uipathfn(path), msg)) for abs in ctx.walk(matchmod.badmatch(m, badfn)): if abs not in names: