Mercurial > hg-stable
changeset 4208:bd9b84b9a84b
Make [PATCH] removal slightly more robust
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Tue, 13 Mar 2007 21:54:34 -0700 |
parents | b7e66db28571 |
children | dbc3846c09a1 |
files | mercurial/patch.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/patch.py Tue Mar 13 21:50:42 2007 -0700 +++ b/mercurial/patch.py Tue Mar 13 21:54:34 2007 -0700 @@ -60,8 +60,8 @@ if message: if message.startswith('[PATCH'): pend = message.find(']') - if pend: - message = message[pend+2:] + if pend >= 0: + message = message[pend+1:].lstrip() message = message.replace('\n\t', ' ') ui.debug('Subject: %s\n' % message) if user: