update rewrite-log for tip ; chmod it
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sun, 26 Nov 2006 13:28:30 +0100
changeset 3711 9ccc6be9ae4d
parent 3710 91690473856c
child 3712 1bd70d40ec57
update rewrite-log for tip ; chmod it
contrib/rewrite-log
--- 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)