changeset 2561:bd30dc3ffe5a

plugin merge-request mercurial: keeps more chars for import name
author Goffi <goffi@goffi.org>
date Mon, 02 Apr 2018 08:56:24 +0200
parents 6a31c67c562f
children 26edcf3a30eb
files src/plugins/plugin_merge_req_mercurial.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_merge_req_mercurial.py	Mon Apr 02 08:49:20 2018 +0200
+++ b/src/plugins/plugin_merge_req_mercurial.py	Mon Apr 02 08:56:24 2018 +0200
@@ -131,7 +131,7 @@
         parsed_data = self.parse(data)
         try:
             parsed_name = parsed_data[0][u'commit_msg'].split(u'\n')[0]
-            parsed_name = re.sub(ur'[^\w -.]', u'', parsed_name, flags=re.UNICODE)[:20]
+            parsed_name = re.sub(ur'[^\w -.]', u'', parsed_name, flags=re.UNICODE)[:40]
         except Exception:
             parsed_name = u''
         name = u'mr_{item_id}_{parsed_name}'.format(item_id=item_id, parsed_name=parsed_name)