changeset 4201:7e95381a9f1e

Strip [PATCH...] from message subject when importing patches
author Brendan Cully <brendan@kublai.com>
date Mon, 12 Mar 2007 13:58:06 -0700
parents b5d1eaade333
children b2873c587b1a
files mercurial/patch.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/patch.py	Sat Mar 10 23:21:33 2007 -0300
+++ b/mercurial/patch.py	Mon Mar 12 13:58:06 2007 -0700
@@ -58,6 +58,10 @@
         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: