# HG changeset patch # User Mads Kiilerich # Date 2012-01-11 01:29:55 # Node ID 3862369cf9b99ff102fc39ae5dc81c247d7f3d06 # Parent 02b1355587563205eb92d0a13a137345db460f9f 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. diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -654,6 +654,7 @@ class queue(object): finally: repo.invalidate() repo.dirstate.invalidate() + self.invalidate() raise finally: release(tr, lock, wlock)