# HG changeset patch # User Goffi # Date 1522652184 -7200 # Node ID bd30dc3ffe5acb24dc938798872eafb1d92a579d # Parent 6a31c67c562fa40e2bb0d94fd7ce301c0eae8d05 plugin merge-request mercurial: keeps more chars for import name diff -r 6a31c67c562f -r bd30dc3ffe5a src/plugins/plugin_merge_req_mercurial.py --- 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)