changeset 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 62e3b9466700
files hgext/interhg.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/interhg.py	Fri Jun 19 10:24:34 2009 +0200
+++ b/hgext/interhg.py	Fri Jun 19 10:30:18 2009 +0200
@@ -22,9 +22,9 @@
 A few example patterns (link to bug tracking, etc.):
 
   [interhg]
-  issues = s!issue(\d+)!<a href="http://bts/issue\1">issue\1</a>!
-  bugzilla = s!((?:bug|b=|(?=#?\d{4,}))(?:\s*#?)(\d+))!<a..=\2">\1</a>!i
-  boldify = s!(^|\s)#(\d+)\b! <b>#\2</b>!
+  issues = s!issue(\\d+)!<a href="http://bts/issue\\1">issue\\1</a>!
+  bugzilla = s!((?:bug|b=|(?=#?\\d{4,}))(?:\\s*#?)(\\d+))!<a..=\\2">\\1</a>!i
+  boldify = s!(^|\\s)#(\\d+)\\b! <b>#\\2</b>!
 '''
 
 import re