Patchwork [4,of,7] test-commandserver: remove unused repopath argument from check()

login
register
mail settings
Submitter Yuya Nishihara
Date Oct. 4, 2014, 10:52 a.m.
Message ID <a2ce71101853ef1eff92.1412419947@mimosa>
Download mbox | patch
Permalink /patch/6111/
State Accepted
Headers show

Comments

Yuya Nishihara - Oct. 4, 2014, 10:52 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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.

Patch

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: