diff -r 3dc31476c148 -r 6a830bed4af1 hgkw/hgkwencode.py --- a/hgkw/hgkwencode.py Tue Dec 19 15:57:03 2006 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -# $Hg$ - -import re, sys - -def kwencode(): - '''Truncates hg keywords in IO stream - from - Hg: - to - Hg.''' - kwrepl = r'%sHg$' % '$' - re_kwtrunc = re.compile(r'[$]Hg: .+?,v [a-z0-9]{12} [^$]+? \$') - sys.stdout.write(re_kwtrunc.sub(kwrepl, sys.stdin.read()))