diff -r 14038784f986 -r 38ee735886d2 hgkw/pretxnkw.py --- a/hgkw/pretxnkw.py Tue Dec 19 17:22:26 2006 +0100 +++ b/hgkw/pretxnkw.py Wed Dec 20 10:37:06 2006 +0100 @@ -46,12 +46,12 @@ re_kw = re.compile(r'\$Hg[^$]*?\$') for f in files: - text = repo.wfile(f).read() - if not util.binary(text): + data = repo.wfile(f).read() + if not util.binary(data): kw = '$Hg: %s,v %s %s %s $' % ( os.path.basename(f), cid, date, user) - text, kwct = re_kw.subn(kw, text) + data, kwct = re_kw.subn(kw, data) if kwct: ui.note(_('expanding keywords in %s\n' % f)) # backup file? - repo.wfile(f, 'w').write(text) + repo.wfile(f, 'w').write(data)