Mercurial > public > mercurial-scm > hg
diff hgext/mq.py @ 4403:15289406f89c
mq: account for readheaders munging in qrefresh
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Tue, 01 May 2007 13:23:32 -0700 |
parents | 077aafddd35f |
children | 28b7d949ef6a |
line wrap: on
line diff
--- a/hgext/mq.py Tue May 01 14:42:54 2007 -0500 +++ b/hgext/mq.py Tue May 01 13:23:32 2007 -0700 @@ -985,8 +985,11 @@ if comments: # Remove existing message. ci = 0 + subj = None for mi in xrange(len(message)): - while message[mi] != comments[ci]: + if comments[ci].lower().startswith('subject: '): + subj = comments[ci][9:] + while message[mi] != comments[ci] and message[mi] != subj: ci += 1 del comments[ci] comments.append(msg)