# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-02-19 18:17:15 # Node ID e218830f6f0a3229decafc6d9c2e3b41cf630cc6 # Parent 1eee42aed306d9212beebfe519f7ae8c6e3fb913 convert: don't use bytes as a variable name Differential Revision: https://phab.mercurial-scm.org/D2357 diff --git a/hgext/convert/common.py b/hgext/convert/common.py --- a/hgext/convert/common.py +++ b/hgext/convert/common.py @@ -418,17 +418,17 @@ class commandline(object): def _limit_arglist(self, arglist, cmd, *args, **kwargs): cmdlen = len(self._cmdline(cmd, *args, **kwargs)) limit = self.argmax - cmdlen - bytes = 0 + numbytes = 0 fl = [] for fn in arglist: b = len(fn) + 3 - if bytes + b < limit or len(fl) == 0: + if numbytes + b < limit or len(fl) == 0: fl.append(fn) - bytes += b + numbytes += b else: yield fl fl = [fn] - bytes = b + numbytes = b if fl: yield fl