##// END OF EJS Templates
yet another fix for commit linkifications
marcink -
r2966:566f0166 beta
parent child Browse files
Show More
@@ -940,7 +940,6 b' def fancy_file_stats(stats):'
940 940
941 941
942 942 def urlify_text(text_):
943 import re
944 943
945 944 url_pat = re.compile(r'''(http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]'''
946 945 '''|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+)''')
@@ -959,7 +958,7 b' def urlify_changesets(text_, repository)'
959 958 :param text_:
960 959 :param repository:
961 960 """
962 import re
961
963 962 URL_PAT = re.compile(r'([0-9a-fA-F]{12,})')
964 963
965 964 def url_func(match_obj):
@@ -994,7 +993,6 b' def urlify_commit(text_, repository=None'
994 993 :param repository:
995 994 :param link_: changeset link
996 995 """
997 import re
998 996 import traceback
999 997
1000 998 def escaper(string):
@@ -1071,13 +1069,11 b' def urlify_commit(text_, repository=None'
1071 1069 if link_:
1072 1070 # wrap not links into final link => link_
1073 1071 newtext = linkify_others(newtext, link_)
1074
1075 return literal(newtext)
1076 1072 except:
1077 1073 log.error(traceback.format_exc())
1078 1074 pass
1079 1075
1080 return newtext
1076 return literal(newtext)
1081 1077
1082 1078
1083 1079 def rst(source):
General Comments 0
You need to be logged in to leave comments. Login now