Mercurial > public > mercurial-scm > hg
diff hgext/patchbomb.py @ 4142:ba3e13306f70
patchbomb: Strip more than one trailing dot (and spaces between them)
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 04 Mar 2007 18:42:31 +0100 |
parents | 49d7a035235b |
children | 03e9c22a6489 8e37342cb05d |
line wrap: on
line diff
--- a/hgext/patchbomb.py Sun Mar 04 18:40:08 2007 +0100 +++ b/hgext/patchbomb.py Sun Mar 04 18:42:31 2007 +0100 @@ -156,8 +156,7 @@ body += '\n'.join(patch) msg = email.MIMEText.MIMEText(body) - subj = desc[0].strip() - if subj.endswith('.'): subj = subj[:-1] + subj = desc[0].strip().rstrip('. ') if total == 1: subj = '[PATCH] ' + (opts['subject'] or subj) else: