--- a/contrib/rewrite-log Thu Nov 23 22:45:00 2006 -0800
+++ b/contrib/rewrite-log Sun Nov 26 13:28:30 2006 +0100
@@ -1,13 +1,13 @@
#!/usr/bin/env python
import sys, os
-from mercurial import hg
+from mercurial import revlog, transaction, node, util
f = sys.argv[1]
-r1 = hg.revlog(open, f + ".i", f + ".d")
-r2 = hg.revlog(open, f + ".i2", f + ".d2")
+r1 = revlog.revlog(util.opener(os.getcwd(), audit=False), f + ".i", f + ".d")
+r2 = revlog.revlog(util.opener(os.getcwd(), audit=False), f + ".i2", f + ".d2")
-tr = hg.transaction(open, "journal")
+tr = transaction.transaction(sys.stderr.write, open, "journal")
for i in xrange(r1.count()):
n = r1.node(i)