Patchwork D2357: convert: don't use bytes as a variable name

login
register
mail settings
Submitter phabricator
Date Feb. 19, 2018, 6:39 p.m.
Message ID <differential-rev-PHID-DREV-afmtnuy5ekaxnm525s3d-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28163/
State Superseded
Headers show

Comments

phabricator - Feb. 19, 2018, 6:39 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2357

AFFECTED FILES
  hgext/convert/common.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

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 @@ 
     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