D3861: scmutil: fix __enter__ in progress context manager

hooper (Danny Hooper) phabricator at mercurial-scm.org
Sat Jun 30 19:04:12 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG077301ac69dc: scmutil: fix __enter__ in progress context manager (authored by hooper, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3861?vs=9367&id=9380

REVISION DETAIL
  https://phab.mercurial-scm.org/D3861

AFFECTED FILES
  mercurial/scmutil.py

CHANGE DETAILS

diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -1328,7 +1328,7 @@
         self.total = total
 
     def __enter__(self):
-        pass
+        return self
 
     def __exit__(self, exc_type, exc_value, exc_tb):
         self.complete()



To: hooper, #hg-reviewers, durin42
Cc: mercurial-devel


More information about the Mercurial-devel mailing list