D7137: largefiles: reset "lfstatus" attribute to previous value in "finally"
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sat Oct 19 01:13:57 EDT 2019
Closed by commit rHG013637f4812e: largefiles: reset "lfstatus" attribute to previous value in "finally" (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7137?vs=17346&id=17349
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7137/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7137
AFFECTED FILES
hgext/largefiles/overrides.py
CHANGE DETAILS
diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py
+++ b/hgext/largefiles/overrides.py
@@ -160,11 +160,12 @@
@contextlib.contextmanager
def lfstatus(repo):
+ oldvalue = getattr(repo, 'lfstatus', False)
repo.lfstatus = True
try:
yield
finally:
- repo.lfstatus = False
+ repo.lfstatus = oldvalue
def removelargefiles(ui, repo, isaddremove, matcher, uipathfn, dryrun, **opts):
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list