changeset 193 | 7a775a8f6fb9 |
parent 3 | b9f2c0853da3 |
parent 192 | 0d2a6c9f8343 |
child 194 | 2a51062ecc60 |
--- a/hgkw/hgkwencode.py Thu Dec 14 08:17:01 2006 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -# $Hg: hgkwencode.py,v$ - -import re, sys - -def kwencode(): - '''Truncates keywords in IO stream.''' - - re_kwtrunc = re.compile(r'([$]Hg: .+?,v) [a-z0-9]{12} [^$]+? \$') - sys.stdout.write(re_kwtrunc.sub(r'\1$', sys.stdin.read()))