Mercurial > hg
changeset 32530:3f0936b2cea9
server: use pycompat to get argv
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sun, 28 May 2017 15:43:26 -0400 |
parents | 0ec17613582c |
children | 7236facefd4f |
files | mercurial/server.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/server.py Sun May 28 13:27:29 2017 -0400 +++ b/mercurial/server.py Sun May 28 15:43:26 2017 -0400 @@ -8,7 +8,6 @@ from __future__ import absolute_import import os -import sys import tempfile from .i18n import _ @@ -19,6 +18,7 @@ commandserver, error, hgweb, + pycompat, util, ) @@ -42,7 +42,7 @@ os.close(lockfd) try: if not runargs: - runargs = util.hgcmd() + sys.argv[1:] + runargs = util.hgcmd() + pycompat.sysargv[1:] runargs.append('--daemon-postexec=unlink:%s' % lockpath) # Don't pass --cwd to the child process, because we've already # changed directory.