# HG changeset patch # User Thomas Arendsen Hein # Date 1173030151 -3600 # Node ID ba3e13306f70344653f08ebac32c04b004f00d4b # Parent 49d7a035235bae58517caa0e303ce1c6b5b03261 patchbomb: Strip more than one trailing dot (and spaces between them) diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py --- a/hgext/patchbomb.py +++ b/hgext/patchbomb.py @@ -156,8 +156,7 @@ def patchbomb(ui, repo, *revs, **opts): 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: