# HG changeset patch # User Martin Geisler # Date 2009-06-19 08:30:18 # Node ID 0c610f77ae1aa2e306c0b374e242ede48a3038e7 # Parent 7bed4ad7b58f5eb34c5a7f9aeb4fb8493de33835 interhg: escape backslashes in docstring diff --git a/hgext/interhg.py b/hgext/interhg.py --- a/hgext/interhg.py +++ b/hgext/interhg.py @@ -22,9 +22,9 @@ To enable this extension, add the follow A few example patterns (link to bug tracking, etc.): [interhg] - issues = s!issue(\d+)!issue\1! - bugzilla = s!((?:bug|b=|(?=#?\d{4,}))(?:\s*#?)(\d+))!\1!i - boldify = s!(^|\s)#(\d+)\b! #\2! + issues = s!issue(\\d+)!issue\\1! + bugzilla = s!((?:bug|b=|(?=#?\\d{4,}))(?:\\s*#?)(\\d+))!\\1!i + boldify = s!(^|\\s)#(\\d+)\\b! #\\2! ''' import re