Mercurial > hg-stable
changeset 40844:1617aa916d88
commandserver: expand log path for convenience
This allows us to set the log path relative to $XDG_RUNTIME_DIR, for instance.
[cmdserver]
log = $XDG_RUNTIME_DIR/chg/server.log
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 10 Nov 2018 19:27:47 +0900 |
parents | eaabcb689747 |
children | d23fd01cc115 |
files | mercurial/commandserver.py tests/test-chg.t |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commandserver.py Sat Nov 10 19:09:37 2018 +0900 +++ b/mercurial/commandserver.py Sat Nov 10 19:27:47 2018 +0900 @@ -367,7 +367,7 @@ elif logpath == b'-': logger = loggingutil.fileobjectlogger(ui.ferr, tracked) else: - logpath = os.path.abspath(logpath) + logpath = os.path.abspath(util.expandpath(logpath)) vfs = vfsmod.vfs(os.path.dirname(logpath)) logger = loggingutil.filelogger(vfs, os.path.basename(logpath), tracked)