Mercurial > hg
comparison hgext/interhg.py @ 9065:90e16c251246
interhg: wrapped docstrings at 78 characters
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Tue, 07 Jul 2009 23:54:42 +0200 |
parents | 3df8dbf706b0 |
children | 9f64878a6e8a |
comparison
equal
deleted
inserted
replaced
9064:773ab631a0c8 | 9065:90e16c251246 |
---|---|
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 '''expand expressions into changelog and summaries | 11 '''expand expressions into changelog and summaries |
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, which will be |
14 which will be automatically expanded into links or any other | 14 automatically expanded into links or any other arbitrary expression, much like |
15 arbitrary expression, much like InterWiki does. | 15 InterWiki does. |
16 | 16 |
17 A few example patterns (link to bug tracking, etc.) that may | 17 A few example patterns (link to bug tracking, etc.) that may be used in your |
18 be used in your hgrc: | 18 hgrc: |
19 | 19 |
20 [interhg] | 20 [interhg] |
21 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>! |
22 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 |
23 boldify = s!(^|\\s)#(\\d+)\\b! <b>#\\2</b>! | 23 boldify = s!(^|\\s)#(\\d+)\\b! <b>#\\2</b>! |