convert: make commandline.limit_arglist private, simplify stable
authorPatrick Mezard <patrick@mezard.eu>
Fri, 03 Aug 2012 21:05:01 +0200
branchstable
changeset 17412 e169b11fa1e0
parent 17411 a02e36568e88
child 17413 97f1f22c2dba
convert: make commandline.limit_arglist private, simplify
hgext/convert/common.py
--- a/hgext/convert/common.py	Tue Aug 14 22:38:25 2012 -0400
+++ b/hgext/convert/common.py	Fri Aug 03 21:05:01 2012 +0200
@@ -345,8 +345,8 @@
         # (and make happy Windows shells while doing this).
         return argmax // 2 - 1
 
-    def limit_arglist(self, arglist, cmd, closestdin, *args, **kwargs):
-        cmdlen = len(self._cmdline(cmd, closestdin, *args, **kwargs))
+    def _limit_arglist(self, arglist, cmd, *args, **kwargs):
+        cmdlen = len(self._cmdline(cmd, *args, **kwargs))
         limit = self.argmax - cmdlen
         bytes = 0
         fl = []
@@ -363,7 +363,7 @@
             yield fl
 
     def xargs(self, arglist, cmd, *args, **kwargs):
-        for l in self.limit_arglist(arglist, cmd, True, *args, **kwargs):
+        for l in self._limit_arglist(arglist, cmd, *args, **kwargs):
             self.run0(cmd, *(list(args) + l), **kwargs)
 
 class mapfile(dict):