Mercurial > public > mercurial-scm > hg
comparison mercurial/commandserver.py @ 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 | f38bf44e077f |
children | 6000f5b25c9b |
comparison
equal
deleted
inserted
replaced
47623:227bbb078c2c | 47624:27e75b8bf784 |
---|---|
427 if logpath == b'-' and fp: | 427 if logpath == b'-' and fp: |
428 logger = loggingutil.fileobjectlogger(fp, tracked) | 428 logger = loggingutil.fileobjectlogger(fp, tracked) |
429 elif logpath == b'-': | 429 elif logpath == b'-': |
430 logger = loggingutil.fileobjectlogger(ui.ferr, tracked) | 430 logger = loggingutil.fileobjectlogger(ui.ferr, tracked) |
431 else: | 431 else: |
432 logpath = os.path.abspath(util.expandpath(logpath)) | 432 logpath = util.abspath(util.expandpath(logpath)) |
433 # developer config: cmdserver.max-log-files | 433 # developer config: cmdserver.max-log-files |
434 maxfiles = ui.configint(b'cmdserver', b'max-log-files') | 434 maxfiles = ui.configint(b'cmdserver', b'max-log-files') |
435 # developer config: cmdserver.max-log-size | 435 # developer config: cmdserver.max-log-size |
436 maxsize = ui.configbytes(b'cmdserver', b'max-log-size') | 436 maxsize = ui.configbytes(b'cmdserver', b'max-log-size') |
437 vfs = vfsmod.vfs(os.path.dirname(logpath)) | 437 vfs = vfsmod.vfs(os.path.dirname(logpath)) |