D5935: windows: use util.localpath for repo-relative paths in getuipathfn()
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Wed Feb 13 07:15:45 EST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa8d3a4be066e: windows: use util.localpath for repo-relative paths in getuipathfn() (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5935?vs=14031&id=14058
REVISION DETAIL
https://phab.mercurial-scm.org/D5935
AFFECTED FILES
mercurial/scmutil.py
CHANGE DETAILS
diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -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.'''
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list