scmutil: fix __enter__ in progress context manager
authorDanny Hooper <hooper@google.com>
Fri, 29 Jun 2018 14:43:41 -0700
changeset 38503 077301ac69dc
parent 38502 2279d90eed9a
child 38504 3beb0ea083df
scmutil: fix __enter__ in progress context manager Differential Revision: https://phab.mercurial-scm.org/D3861
mercurial/scmutil.py
--- 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()