changeset 3711:9ccc6be9ae4d

update rewrite-log for tip ; chmod it
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 26 Nov 2006 13:28:30 +0100
parents 91690473856c
children 1bd70d40ec57
files contrib/rewrite-log
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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)