Mercurial > public > mercurial-scm > hg
diff hgext/mq.py @ 5183:f8aa16533ddf
Merge with crew-stable
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Wed, 15 Aug 2007 16:22:12 -0700 |
parents | f6c520fd70cf 5bbbd1f1d586 |
children | 90d9ec0dc69d |
line wrap: on
line diff
--- a/hgext/mq.py Wed Aug 15 14:38:18 2007 -0700 +++ b/hgext/mq.py Wed Aug 15 16:22:12 2007 -0700 @@ -924,8 +924,6 @@ 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 @@ ci += 1 del comments[ci] comments.append(msg) + + patchf.seek(0) + patchf.truncate() + if comments: comments = "\n".join(comments) + '\n\n' patchf.write(comments)