diff --git a/contrib/hgclient.py b/contrib/hgclient.py --- a/contrib/hgclient.py +++ b/contrib/hgclient.py @@ -2,7 +2,7 @@ import sys, struct, subprocess, cStringIO -def connect(path=None): +def connectpipe(path=None): cmdline = ['hg', 'serve', '--cmdserver', 'pipe'] if path: cmdline += ['-R', path] @@ -62,7 +62,7 @@ def runcommand(server, args, output=sys. if ch.isupper(): return -def check(func): +def check(func, connect=connectpipe): sys.stdout.flush() server = connect() try: