##// END OF EJS Templates
dirstate: introduce a (noop) running_status context...
marmoute -
r51027:3dd7e54f default
parent child Browse files
Show More
@@ -205,6 +205,16 b' class dirstate:'
205
205
206 @contextlib.contextmanager
206 @contextlib.contextmanager
207 @check_invalidated
207 @check_invalidated
208 def running_status(self, repo):
209 """Wrap a status operation
210
211 Currently does nothing, but exist to let other code adds it before we
212 start enforcing it.
213 """
214 yield
215
216 @contextlib.contextmanager
217 @check_invalidated
208 def _changing(self, repo, change_type):
218 def _changing(self, repo, change_type):
209 if repo.currentwlock() is None:
219 if repo.currentwlock() is None:
210 msg = b"trying to change the dirstate without holding the wlock"
220 msg = b"trying to change the dirstate without holding the wlock"
General Comments 0
You need to be logged in to leave comments. Login now