Mercurial > hg-stable
changeset 17412:e169b11fa1e0 stable
convert: make commandline.limit_arglist private, simplify
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Fri, 03 Aug 2012 21:05:01 +0200 |
parents | a02e36568e88 |
children | 97f1f22c2dba |
files | hgext/convert/common.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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):