Patchwork D11061: windows: use abspath in commandserver

login
register
mail settings
Submitter phabricator
Date July 10, 2021, 5:45 p.m.
Message ID <differential-rev-PHID-DREV-z5m5sxdynjvpopl73ioa-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49374/
State Superseded
Headers show

Comments

phabricator - July 10, 2021, 5:45 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  We replace `os.path.abspath` with `util.abspath`. This should solve more "drive
  capitalization" issue on Windows.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D11061

AFFECTED FILES
  mercurial/commandserver.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/commandserver.py b/mercurial/commandserver.py
--- a/mercurial/commandserver.py
+++ b/mercurial/commandserver.py
@@ -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