changeset 2621:2f75830a8228

plugin merge request (mercurial): escape colons in import name
author Goffi <goffi@goffi.org>
date Wed, 27 Jun 2018 07:23:59 +0200
parents 72f6f37ab648
children 8fb99ed47db4
files sat/plugins/plugin_merge_req_mercurial.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_merge_req_mercurial.py	Wed Jun 27 07:23:13 2018 +0200
+++ b/sat/plugins/plugin_merge_req_mercurial.py	Wed Jun 27 07:23:59 2018 +0200
@@ -132,7 +132,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)[:40]
+            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,