Mercurial > hg
comparison hgext/interhg.py @ 8910:0c610f77ae1a
interhg: escape backslashes in docstring
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Fri, 19 Jun 2009 10:30:18 +0200 |
parents | 7bed4ad7b58f |
children | 3df8dbf706b0 |
comparison
equal
deleted
inserted
replaced
8909:7bed4ad7b58f | 8910:0c610f77ae1a |
---|---|
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 |