equal
deleted
inserted
replaced
265 self.invalidate() |
265 self.invalidate() |
266 |
266 |
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 |
273 def _changing(self, repo, change_type): |
278 def _changing(self, repo, change_type): |
274 if repo.currentwlock() is None: |
279 if repo.currentwlock() is None: |