Show More
@@ -827,6 +827,15 b' def urlify_changesets(text_, repository)' | |||||
827 |
|
827 | |||
828 |
|
828 | |||
829 | def urlify_commit(text_, repository=None, link_=None): |
|
829 | def urlify_commit(text_, repository=None, link_=None): | |
|
830 | """ | |||
|
831 | Parses given text message and makes proper links. | |||
|
832 | issues are linked to given issue-server, and rest is a changeset link | |||
|
833 | if link_ is given, in other case it's a plain text | |||
|
834 | ||||
|
835 | :param text_: | |||
|
836 | :param repository: | |||
|
837 | :param link_: changeset link | |||
|
838 | """ | |||
830 | import re |
|
839 | import re | |
831 | import traceback |
|
840 | import traceback | |
832 |
|
841 | |||
@@ -878,8 +887,9 b' def urlify_commit(text_, repository=None' | |||||
878 |
|
887 | |||
879 | newtext = URL_PAT.sub(url_func, text_) |
|
888 | newtext = URL_PAT.sub(url_func, text_) | |
880 |
|
889 | |||
881 | # wrap not links into final link => link_ |
|
890 | if link_: | |
882 | newtext = linkify_others(newtext, link_) |
|
891 | # wrap not links into final link => link_ | |
|
892 | newtext = linkify_others(newtext, link_) | |||
883 |
|
893 | |||
884 | return literal(newtext) |
|
894 | return literal(newtext) | |
885 | except: |
|
895 | except: |
General Comments 0
You need to be logged in to leave comments.
Login now