# HG changeset patch # User Mads Kiilerich # Date 1386700237 -3600 # Node ID 916be70ff883557f2610744fb3f8f6138d95ab9f # Parent 5095f484f74ca08eb68e388d1168d2e909e5e533 helpers: urlify_commit requires a repo - it might crash without diff -r 5095f484f74c -r 916be70ff883 kallithea/lib/helpers.py --- a/kallithea/lib/helpers.py Tue Dec 10 19:30:37 2013 +0100 +++ b/kallithea/lib/helpers.py Tue Dec 10 19:30:37 2013 +0100 @@ -1268,7 +1268,7 @@ return newtext -def urlify_commit(text_, repository=None, link_=None): +def urlify_commit(text_, repository, link_=None): """ Parses given text message and makes proper links. issues are linked to given issue-server, and rest is a changeset link @@ -1295,7 +1295,7 @@ return ''.join(links) - # urlify changesets - extrac revisions and make link out of them + # urlify changesets - extract revisions and make link out of them newtext = urlify_changesets(escaper(text_), repository) # extract http/https links and make them real urls