test-commandserver: remove unused repopath argument from check()
authorYuya Nishihara <yuya@tcha.org>
Sat, 27 Sep 2014 22:39:01 +0900
changeset 22991 a94594f5d52f
parent 22990 a0e81aa94125
child 22992 892b2b8c1b50
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.
contrib/hgclient.py
--- a/contrib/hgclient.py	Sat Sep 27 15:10:14 2014 +0900
+++ b/contrib/hgclient.py	Sat Sep 27 22:39:01 2014 +0900
@@ -62,9 +62,9 @@
             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: