diff mercurial/bundle2.py @ 42935:181ee2118a96

bundle2: fix an off-by-one in debug message of number of parts Differential Revision: https://phab.mercurial-scm.org/D6850
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 11 Sep 2019 15:03:08 -0700
parents 38392d5bde8e
children 2372284d9457
line wrap: on
line diff
--- a/mercurial/bundle2.py	Thu Sep 12 22:31:45 2019 -0700
+++ b/mercurial/bundle2.py	Wed Sep 11 15:03:08 2019 -0700
@@ -368,7 +368,7 @@
 
     def __enter__(self):
         def func():
-            itr = enumerate(self.unbundler.iterparts())
+            itr = enumerate(self.unbundler.iterparts(), 1)
             for count, p in itr:
                 self.count = count
                 self.current = p