##// END OF EJS Templates
dirstate: have `running_status` warn when exiting with a dirty dirstate...
marmoute -
r51043:b583988c default
parent child Browse files
Show More
@@ -267,6 +267,11 b' class dirstate:'
267 if should_write:
267 if should_write:
268 assert repo.currenttransaction() is tr
268 assert repo.currenttransaction() is tr
269 self.write(tr)
269 self.write(tr)
270 elif not has_lock:
271 if self._dirty:
272 msg = b'dirstate dirty while exiting an isolated status context'
273 repo.ui.develwarn(msg)
274 self.invalidate()
270
275
271 @contextlib.contextmanager
276 @contextlib.contextmanager
272 @check_invalidated
277 @check_invalidated
General Comments 0
You need to be logged in to leave comments. Login now