# HG changeset patch # User Martin von Zweigbergk # Date 1571436891 25200 # Node ID 013637f4812e576d83a1e43e6b5db15de8d9c8a5 # Parent 03dae1044edd3792ba79a6e3534cbada67dee6b2 largefiles: reset "lfstatus" attribute to previous value in "finally" We were resetting it to False, which means nesting of these overrides would be incorrect. Differential Revision: https://phab.mercurial-scm.org/D7137 diff -r 03dae1044edd -r 013637f4812e hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py Fri Oct 18 14:40:50 2019 -0700 +++ b/hgext/largefiles/overrides.py Fri Oct 18 15:14:51 2019 -0700 @@ -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):