changeset 38507: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 2279d90eed9a
children 3beb0ea083df
files mercurial/scmutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/scmutil.py	Fri Jun 29 14:14:35 2018 -0700
+++ b/mercurial/scmutil.py	Fri Jun 29 14:43:41 2018 -0700
@@ -1328,7 +1328,7 @@
         self.total = total
 
     def __enter__(self):
-        pass
+        return self
 
     def __exit__(self, exc_type, exc_value, exc_tb):
         self.complete()