Mercurial > hg
comparison hgext/interhg.py @ 8909:7bed4ad7b58f
interhg: remove unnecessary escaping
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Fri, 19 Jun 2009 10:24:34 +0200 |
parents | 67ee7587abea |
children | 0c610f77ae1a |
comparison
equal
deleted
inserted
replaced
8908:105343f9f744 | 8909:7bed4ad7b58f |
---|---|
20 interhg = | 20 interhg = |
21 | 21 |
22 A few example patterns (link to bug tracking, etc.): | 22 A few example patterns (link to bug tracking, etc.): |
23 | 23 |
24 [interhg] | 24 [interhg] |
25 issues = s!issue(\d+)!<a href="http://bts/issue\1">issue\1<\/a>! | 25 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 | 26 bugzilla = s!((?:bug|b=|(?=#?\d{4,}))(?:\s*#?)(\d+))!<a..=\2">\1</a>!i |
27 boldify = s/(^|\s)#(\d+)\b/ <b>#\2<\/b>/ | 27 boldify = s!(^|\s)#(\d+)\b! <b>#\2</b>! |
28 ''' | 28 ''' |
29 | 29 |
30 import re | 30 import re |
31 from mercurial.hgweb import hgweb_mod | 31 from mercurial.hgweb import hgweb_mod |
32 from mercurial import templatefilters, extensions | 32 from mercurial import templatefilters, extensions |