changeset 15881:3862369cf9b9

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.
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 11 Jan 2012 02:29:55 +0100
parents 02b135558756
children fb63930592d6
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)