Patchwork D3861: scmutil: fix __enter__ in progress context manager

login
register
mail settings
Submitter phabricator
Date July 1, 2018, 10:43 p.m.
Message ID <8d5632d859328d0aaa48b405e000f9a3@localhost.localdomain>
Download mbox | patch
Permalink /patch/32560/
State Not Applicable
Headers show

Comments

phabricator - July 1, 2018, 10:43 p.m.
hooper updated this revision to Diff 9402.

REPOSITORY
  rHG Mercurial

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

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

AFFECTED FILES
  mercurial/scmutil.py

CHANGE DETAILS




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

Patch

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()