# HG changeset patch # User Danny Hooper # Date 2018-06-29 21:43:41 # Node ID 077301ac69dc3a5b43379abcea37fbcf60d8d333 # Parent 2279d90eed9a12f131a82e686d9d3bb51cf890bd scmutil: fix __enter__ in progress context manager Differential Revision: https://phab.mercurial-scm.org/D3861 diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -1328,7 +1328,7 @@ class progress(object): self.total = total def __enter__(self): - pass + return self def __exit__(self, exc_type, exc_value, exc_tb): self.complete()