mq: use .invalidate to cancel dirty mq state when cancelling transaction
authorMads Kiilerich <mads@kiilerich.com>
Wed, 11 Jan 2012 02:29:55 +0100
changeset 15881 3862369cf9b9
parent 15880 02b135558756
child 15882 fb63930592d6
mq: use .invalidate to cancel dirty mq state when cancelling transaction Before the code optimistically relied on savedirty not being called a cancelled transaction. If it was called it could save incorrect data. Instead we now start using the invalidate method introduced in b169ba60eebe.
hgext/mq.py
--- a/hgext/mq.py	Wed Jan 11 02:29:55 2012 +0100
+++ b/hgext/mq.py	Wed Jan 11 02:29:55 2012 +0100
@@ -654,6 +654,7 @@
                 finally:
                     repo.invalidate()
                     repo.dirstate.invalidate()
+                    self.invalidate()
                 raise
         finally:
             release(tr, lock, wlock)