--- 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()))
--- a/hgkwencode Tue Dec 12 22:26:05 2006 +0100
+++ b/hgkwencode Tue Dec 12 23:35:45 2006 +0100
@@ -3,4 +3,4 @@
from hgkw import hgkwencode
-hgkwencode.hgkwencode()
+hgkwencode.kwencode()