Show More
@@ -204,7 +204,11 b' class dirstate:' | |||||
204 | # Exception catching (and the associated `invalidate` |
|
204 | # Exception catching (and the associated `invalidate` | |
205 | # calling) might have been called by a nested context |
|
205 | # calling) might have been called by a nested context | |
206 | # instead of the top level one. |
|
206 | # instead of the top level one. | |
207 |
|
|
207 | tr = repo.currenttransaction() | |
|
208 | if tr is not None: | |||
|
209 | abort_cb = lambda tr: self.invalidate() | |||
|
210 | tr.addabort(b'dirstate', abort_cb) | |||
|
211 | self.write(tr) | |||
208 |
|
212 | |||
209 | @contextlib.contextmanager |
|
213 | @contextlib.contextmanager | |
210 | def changing_parents(self, repo): |
|
214 | def changing_parents(self, repo): |
General Comments 0
You need to be logged in to leave comments.
Login now