Patchwork D3861: scmutil: fix __enter__ in progress context manager

login
register
mail settings
Submitter phabricator
Date June 30, 2018, 11:04 p.m.
Message ID <55d5802bdfbaf36aa3d7c3f2cf702d84@localhost.localdomain>
Download mbox | patch
Permalink /patch/32532/
State Not Applicable
Headers show

Comments

phabricator - June 30, 2018, 11:04 p.m.
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




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