[PATCH 4 of 7] test-commandserver: remove unused repopath argument from check()
Yuya Nishihara
yuya at tcha.org
Sat Oct 4 05:52:27 CDT 2014
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1411825141 -32400
# Sat Sep 27 22:39:01 2014 +0900
# Node ID a2ce71101853ef1eff92b301304b86ba25fb5b90
# Parent 01ae3e539d1f1f9221a0e04a6833a2b50a410bb3
test-commandserver: remove unused repopath argument from check()
Instead of repopath, check() will receive connect() function as argument.
It will allow to connect to server of different mode.
diff --git a/contrib/hgclient.py b/contrib/hgclient.py
--- a/contrib/hgclient.py
+++ b/contrib/hgclient.py
@@ -62,9 +62,9 @@ def runcommand(server, args, output=sys.
if ch.isupper():
return
-def check(func, repopath=None):
+def check(func):
sys.stdout.flush()
- server = connect(repopath)
+ server = connect()
try:
return func(server)
finally:
More information about the Mercurial-devel
mailing list