comparison mercurial/scmutil.py @ 38503:077301ac69dc

scmutil: fix __enter__ in progress context manager Differential Revision: https://phab.mercurial-scm.org/D3861
author Danny Hooper <hooper@google.com>
date Fri, 29 Jun 2018 14:43:41 -0700
parents 1cac2e8c7624
children 152f4822d210
comparison
equal deleted inserted replaced
38502:2279d90eed9a 38503:077301ac69dc
1326 self.topic = topic 1326 self.topic = topic
1327 self.unit = unit 1327 self.unit = unit
1328 self.total = total 1328 self.total = total
1329 1329
1330 def __enter__(self): 1330 def __enter__(self):
1331 pass 1331 return self
1332 1332
1333 def __exit__(self, exc_type, exc_value, exc_tb): 1333 def __exit__(self, exc_type, exc_value, exc_tb):
1334 self.complete() 1334 self.complete()
1335 1335
1336 def update(self, pos, item="", total=None): 1336 def update(self, pos, item="", total=None):