# HG changeset patch # User Pierre-Yves David # Date 1676902687 -3600 # Node ID 3dd7e54ff7f1fb2fcacec7341cf6a49865c8af93 # Parent e5f5f1c1c452e23107aa35cf34d0042aa9e0488c dirstate: introduce a (noop) running_status context Let us start with a simplistic context so we can scope the appropriate code before adding more logic. diff -r e5f5f1c1c452 -r 3dd7e54ff7f1 mercurial/dirstate.py --- a/mercurial/dirstate.py Tue Feb 21 22:14:12 2023 +0100 +++ b/mercurial/dirstate.py Mon Feb 20 15:18:07 2023 +0100 @@ -205,6 +205,16 @@ @contextlib.contextmanager @check_invalidated + def running_status(self, repo): + """Wrap a status operation + + Currently does nothing, but exist to let other code adds it before we + start enforcing it. + """ + yield + + @contextlib.contextmanager + @check_invalidated def _changing(self, repo, change_type): if repo.currentwlock() is None: msg = b"trying to change the dirstate without holding the wlock"