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

login
register
mail settings
Submitter phabricator
Date Feb. 20, 2018, 1:34 p.m.
Message ID <be7db355c3f5e09ce09c568061544686@localhost.localdomain>
Download mbox | patch
Permalink /patch/28171/
State Not Applicable
Headers show

Comments

phabricator - Feb. 20, 2018, 1:34 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe218830f6f0a: convert: don&#039;t use bytes as a variable name (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2357?vs=5925&id=5936

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

AFFECTED FILES
  hgext/convert/common.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, yuja
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