author | Brendan Cully <brendan@kublai.com> |
Mon, 12 Mar 2007 13:58:06 -0700 | |
changeset 4196 | 7e95381a9f1e |
parent 4195 | b5d1eaade333 |
child 4197 | b2873c587b1a |
--- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -58,6 +58,10 @@ def extract(ui, fileobj): date = None if message: + if message.startswith('[PATCH'): + pend = message.find(']') + if pend: + message = message[pend+2:] message = message.replace('\n\t', ' ') ui.debug('Subject: %s\n' % message) if user: