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.
--- 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"