Patchwork D3861: scmutil: fix __enter__ in progress context manager

login
register
mail settings
Submitter phabricator
Date June 29, 2018, 9:52 p.m.
Message ID <differential-rev-PHID-DREV-bbqmxvus26aztivoaqng-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/32516/
State Superseded
Headers show

Comments

phabricator - June 29, 2018, 9:52 p.m.
hooper created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/scmutil.py

CHANGE DETAILS




To: hooper, #hg-reviewers
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()