diff -r e22695b4472f -r 8e4be44a676f mercurial/cmdutil.py --- a/mercurial/cmdutil.py Wed Jan 06 21:11:58 2010 +0100 +++ b/mercurial/cmdutil.py Wed Jan 06 21:11:58 2010 +0100 @@ -572,7 +572,7 @@ os.close(lockfd) try: if not runargs: - runargs = sys.argv[:] + runargs = util.hgcmd() + sys.argv[1:] runargs.append('--daemon-pipefds=%s' % lockpath) # Don't pass --cwd to the child process, because we've already # changed directory.