hgext/convert/common.py
changeset 36331 e218830f6f0a
parent 36329 93943eef696f
child 36457 0e8b76644e20
--- a/hgext/convert/common.py	Mon Feb 19 23:46:42 2018 +0530
+++ b/hgext/convert/common.py	Mon Feb 19 23:47:15 2018 +0530
@@ -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