##// END OF EJS Templates
interhg: upgrade comments to online help and improve them...
Cédric Duval -
r8824:67ee7587 default
parent child Browse files
Show More
@@ -7,23 +7,25 b''
7 #
7 #
8 # This software may be used and distributed according to the terms of the
8 # This software may be used and distributed according to the terms of the
9 # GNU General Public License version 2, incorporated herein by reference.
9 # GNU General Public License version 2, incorporated herein by reference.
10 #
10
11 # The `interhg' Mercurial extension allows you to change changelog and
11 '''expand expressions into changelog and summaries
12 # summary text just like InterWiki way.
12
13 #
13 This extension allows the use of a special syntax in summaries,
14 # To enable this extension:
14 which will be automatically expanded into links or any other
15 #
15 arbitrary expression, much like InterWiki does.
16 # [extensions]
16
17 # interhg =
17 To enable this extension, add the following lines to your hgrc:
18 #
18
19 # These are some example patterns (link to bug tracking, etc.)
19 [extensions]
20 #
20 interhg =
21 # [interhg]
21
22 # issues = s!issue(\d+)!<a href="http://bts/issue\1">issue\1<\/a>!
22 A few example patterns (link to bug tracking, etc.):
23 # bugzilla = s!((?:bug|b=|(?=#?\d{4,}))(?:\s*#?)(\d+))!<a..=\2">\1</a>!i
23
24 # boldify = s/(^|\s)#(\d+)\b/ <b>#\2<\/b>/
24 [interhg]
25 #
25 issues = s!issue(\d+)!<a href="http://bts/issue\1">issue\1<\/a>!
26 # Add any number of names and patterns to match
26 bugzilla = s!((?:bug|b=|(?=#?\d{4,}))(?:\s*#?)(\d+))!<a..=\2">\1</a>!i
27 boldify = s/(^|\s)#(\d+)\b/ <b>#\2<\/b>/
28 '''
27
29
28 import re
30 import re
29 from mercurial.hgweb import hgweb_mod
31 from mercurial.hgweb import hgweb_mod
General Comments 0
You need to be logged in to leave comments. Login now