Submitter | Yuya Nishihara |
---|---|
Date | Oct. 4, 2014, 10:52 a.m. |
Message ID | <48d895c10d39e370d102.1412419948@mimosa> |
Download | mbox | patch |
Permalink | /patch/6112/ |
State | Accepted |
Headers | show |
Comments
Patch
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: