comparison mercurial/bundle2.py @ 42931: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
comparison
equal deleted inserted replaced
42930:0b81fd0aa2a1 42931:181ee2118a96
366 self.count = 0 366 self.count = 0
367 self.current = None 367 self.current = None
368 368
369 def __enter__(self): 369 def __enter__(self):
370 def func(): 370 def func():
371 itr = enumerate(self.unbundler.iterparts()) 371 itr = enumerate(self.unbundler.iterparts(), 1)
372 for count, p in itr: 372 for count, p in itr:
373 self.count = count 373 self.count = count
374 self.current = p 374 self.current = p
375 yield p 375 yield p
376 p.consume() 376 p.consume()