--- a/hgext/mq.py Wed Jan 11 02:29:55 2012 +0100 +++ b/hgext/mq.py Wed Jan 11 02:29:56 2012 +0100 @@ -968,8 +968,6 @@ for chunk in chunks: p.write(chunk) p.close() - wlock.release() - wlock = None r = self.qrepo() if r: r[None].add([patchfn])