cmdutil: migrate previously missed instances to uipathfn
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 08 Feb 2019 13:00:28 -0800
changeset 41664 0cbf491db7ee
parent 41663 28ce9184d495
child 41665 0ed7a8ac5711
cmdutil: migrate previously missed instances to uipathfn I seem to have missed these two instances in 15f63ac122ea (files: respect ui.relative-paths, 2019-01-29) and 7068c6b0114b (revert: respect ui.relative-paths, 2019-02-05). Differential Revision: https://phab.mercurial-scm.org/D5915
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: