changeset 47624:27e75b8bf784

windows: use abspath in commandserver We replace `os.path.abspath` with `util.abspath`. This should solve more "drive capitalization" issue on Windows. Differential Revision: https://phab.mercurial-scm.org/D11061
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 10 Jul 2021 14:05:49 +0200
parents 227bbb078c2c
children 7bafe40ab78a
files mercurial/commandserver.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commandserver.py	Sat Jul 10 14:05:38 2021 +0200
+++ b/mercurial/commandserver.py	Sat Jul 10 14:05:49 2021 +0200
@@ -429,7 +429,7 @@
     elif logpath == b'-':
         logger = loggingutil.fileobjectlogger(ui.ferr, tracked)
     else:
-        logpath = os.path.abspath(util.expandpath(logpath))
+        logpath = util.abspath(util.expandpath(logpath))
         # developer config: cmdserver.max-log-files
         maxfiles = ui.configint(b'cmdserver', b'max-log-files')
         # developer config: cmdserver.max-log-size