hgkw/hgkwencode.py
branchextension
changeset 38 6a830bed4af1
parent 37 3dc31476c148
child 39 14038784f986
--- 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
-    <Dollar>Hg: <filename> <cset id> <stuff> <Dollar>
-    to
-    <Dollar>Hg<Dollar>.'''
-    kwrepl = r'%sHg$' % '$'
-    re_kwtrunc = re.compile(r'[$]Hg: .+?,v [a-z0-9]{12} [^$]+? \$')
-    sys.stdout.write(re_kwtrunc.sub(kwrepl, sys.stdin.read()))