windows: use abspath in commandserver
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 10 Jul 2021 14:05:49 +0200
changeset 47624 27e75b8bf784
parent 47623 227bbb078c2c
child 47625 7bafe40ab78a
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
mercurial/commandserver.py
--- 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