Mercurial > public > mercurial-scm > hg
comparison hgext/interhg.py @ 9263:2dd1ed9e44db
interhg: wrap docstrings at 70 characters
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sun, 26 Jul 2009 01:49:30 +0200 |
parents | 9f64878a6e8a |
children | 25e572394f5c |
comparison
equal
deleted
inserted
replaced
9262:917e1d5674d6 | 9263:2dd1ed9e44db |
---|---|
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, which will be | 13 This extension allows the use of a special syntax in summaries, which |
14 automatically expanded into links or any other arbitrary expression, much like | 14 will be automatically expanded into links or any other arbitrary |
15 InterWiki does. | 15 expression, much like InterWiki does. |
16 | 16 |
17 A few example patterns (link to bug tracking, etc.) that may be used in your | 17 A few example patterns (link to bug tracking, etc.) that may be used |
18 hgrc:: | 18 in your 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>! |