Changeset - a2ecf8a530b9
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-10-23 17:09:28
marcin@python-works.com
don't check for url issue links, since we always want to linkify changeset into a repo link, fixes issue
with issue_pat beeing disabled breaks the urlification
1 file changed with 3 insertions and 4 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/helpers.py
Show inline comments
 
@@ -1067,16 +1067,15 @@ def urlify_commit(text_, repository=None
 
                     'serv': ISSUE_SERVER_LNK,
 
                }
 
            newtext = URL_PAT.sub(url_func, newtext)
 
            log.debug('processed prefix:`%s` => %s' % (pattern_index, newtext))
 

	
 
        # if we actually did something above
 
        if valid_indices:
 
            if link_:
 
                # wrap not links into final link => link_
 
                newtext = linkify_others(newtext, link_)
 
        if link_:
 
            # wrap not links into final link => link_
 
            newtext = linkify_others(newtext, link_)
 

	
 
            return literal(newtext)
 
    except:
 
        log.error(traceback.format_exc())
 
        pass
 

	
0 comments (0 inline, 0 general)