Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmutil.py @ 41506:02186c6871ac
status: introduce higher-level ui.relative-paths
The existing commands.status.relative trumps the new config. We need
to keep the existing config around for compatibility. However, I don't
think we need to introduce similar command-specific options for other
commands when they learn to respec ui.relative-paths.
Differential Revision: https://phab.mercurial-scm.org/D5746
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 29 Jan 2019 15:37:35 -0800 |
parents | e6ec0737b706 |
children | aec185af621e |
line wrap: on
line diff
--- a/mercurial/scmutil.py Tue Jan 29 15:37:14 2019 -0800 +++ b/mercurial/scmutil.py Tue Jan 29 15:37:35 2019 -0800 @@ -725,7 +725,9 @@ return [] return parents -def getuipathfn(repo, relative): +def getuipathfn(repo, relative=None): + if relative is None: + relative = repo.ui.configbool('ui', 'relative-paths') if relative: cwd = repo.getcwd() pathto = repo.pathto