branch | stable |
changeset 15158 | 7ce7177e029a |
parent 15086 | db0646afb725 |
child 15159 | 85322c19c831 |
--- a/mercurial/patch.py Fri Sep 23 09:02:27 2011 -0700 +++ b/mercurial/patch.py Tue Sep 27 18:41:09 2011 -0500 @@ -188,7 +188,7 @@ pend = subject.find(']') if pend >= 0: subject = subject[pend + 1:].lstrip() - subject = subject.replace('\n\t', ' ') + subject = re.sub(r'\n[ \t]+', ' ', subject) ui.debug('Subject: %s\n' % subject) if user: ui.debug('From: %s\n' % user)