mercurial/scmutil.py
changeset 41695 a8d3a4be066e
parent 41687 0531dff73d0b
child 41696 b81ecf3571d5
--- a/mercurial/scmutil.py	Tue Feb 12 17:10:31 2019 -0500
+++ b/mercurial/scmutil.py	Mon Feb 11 09:12:23 2019 -0800
@@ -756,8 +756,10 @@
         cwd = repo.getcwd()
         pathto = repo.pathto
         return lambda f: pathto(f, cwd)
+    elif repo.ui.configbool('ui', 'slash'):
+        return lambda f: f
     else:
-        return lambda f: f
+        return util.localpath
 
 def subdiruipathfn(subpath, uipathfn):
     '''Create a new uipathfn that treats the file as relative to subpath.'''