hgext/interhg.py
changeset 8916 3df8dbf706b0
parent 8910 0c610f77ae1a
parent 8866 87c30fb7e8df
child 9065 90e16c251246
equal deleted inserted replaced
8915:c57336de5c12 8916:3df8dbf706b0
    12 
    12 
    13 This extension allows the use of a special syntax in summaries,
    13 This extension allows the use of a special syntax in summaries,
    14 which will be automatically expanded into links or any other
    14 which will be automatically expanded into links or any other
    15 arbitrary expression, much like InterWiki does.
    15 arbitrary expression, much like InterWiki does.
    16 
    16 
    17 To enable this extension, add the following lines to your hgrc:
    17 A few example patterns (link to bug tracking, etc.) that may
    18 
    18 be used in your hgrc:
    19   [extensions]
       
    20   interhg =
       
    21 
       
    22 A few example patterns (link to bug tracking, etc.):
       
    23 
    19 
    24   [interhg]
    20   [interhg]
    25   issues = s!issue(\\d+)!<a href="http://bts/issue\\1">issue\\1</a>!
    21   issues = s!issue(\\d+)!<a href="http://bts/issue\\1">issue\\1</a>!
    26   bugzilla = s!((?:bug|b=|(?=#?\\d{4,}))(?:\\s*#?)(\\d+))!<a..=\\2">\\1</a>!i
    22   bugzilla = s!((?:bug|b=|(?=#?\\d{4,}))(?:\\s*#?)(\\d+))!<a..=\\2">\\1</a>!i
    27   boldify = s!(^|\\s)#(\\d+)\\b! <b>#\\2</b>!
    23   boldify = s!(^|\\s)#(\\d+)\\b! <b>#\\2</b>!