diff -r 1d997ec7be86 -r 0bda12ebde94 hgkw/hgkwencode.py --- a/hgkw/hgkwencode.py Tue Dec 12 22:26:05 2006 +0100 +++ b/hgkw/hgkwencode.py Tue Dec 12 23:35:45 2006 +0100 @@ -2,10 +2,9 @@ import re, sys -#re_kwencode = re.compile(r'[$]Hg.*?[$]') -re_kwencode = re.compile(r'([$]Hg: .+?,v) [a-z0-9]{12} [^$]+? [$]') +#re_kw = re.compile(r'[$]Hg.*?[$]') +re_kw = re.compile(r'([$]Hg: .+?,v) [a-z0-9]{12} [^$]+? [$]') -def hgkwencode(): +def kwencode(): sys.stdout.write( - re_kwencode.sub(r'\1$', sys.stdin.read()) - ) + re_kw.sub(r'\1$', sys.stdin.read()))