hgext/interhg.py
changeset 8866 87c30fb7e8df
parent 8824 67ee7587abea
child 8916 3df8dbf706b0
equal deleted inserted replaced
8865:37d8a5ddd499 8866:87c30fb7e8df
    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>/