diff mercurial/scmutil.py @ 41649:799e156785f7

subrepo: (mostly) use relative path in "skipping missing subrepository" This is consistent with the other messages printed by these functions. Note that addremove is a little different and prints absolute (aka repo-relative) paths if no argument was given. Differential Revision: https://phab.mercurial-scm.org/D5900
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 08 Feb 2019 10:32:48 -0800
parents 5ee3c49fc9cd
children f8b18583049f
line wrap: on
line diff
--- a/mercurial/scmutil.py	Fri Feb 08 10:19:30 2019 -0800
+++ b/mercurial/scmutil.py	Fri Feb 08 10:32:48 2019 -0800
@@ -1040,7 +1040,6 @@
     similarity /= 100.0
 
     ret = 0
-    join = lambda f: os.path.join(prefix, f)
 
     wctx = repo[None]
     for subpath in sorted(wctx.substate):
@@ -1053,7 +1052,7 @@
                     ret = 1
             except error.LookupError:
                 repo.ui.status(_("skipping missing subrepository: %s\n")
-                                 % join(subpath))
+                                 % m.uipath(subpath))
 
     rejected = []
     def badfn(f, msg):