author | Brendan Cully <brendan@kublai.com> |
Wed, 15 Aug 2007 16:22:12 -0700 | |
changeset 5175 | f8aa16533ddf |
parent 5173 | 7e05bdeee7de (current diff) |
parent 5174 | 5bbbd1f1d586 (diff) |
child 5178 | fe4d9f7161ac |
hgext/mq.py | file | annotate | diff | comparison | revisions |
--- a/hgext/mq.py +++ b/hgext/mq.py @@ -924,8 +924,6 @@ class queue: if line.startswith('diff --git'): self.diffopts().git = True break - patchf.seek(0) - patchf.truncate() msg = opts.get('msg', '').rstrip() if msg: @@ -940,6 +938,10 @@ class queue: ci += 1 del comments[ci] comments.append(msg) + + patchf.seek(0) + patchf.truncate() + if comments: comments = "\n".join(comments) + '\n\n' patchf.write(comments)