contrib/undumprevlog
changeset 6466 9c426da6b03b
parent 6433 ec5d77eb3431
child 13970 d13913355390
equal deleted inserted replaced
6465:9b340e725c11 6466:9c426da6b03b
     3 # $ hg init
     3 # $ hg init
     4 # $ undumprevlog < repo.dump
     4 # $ undumprevlog < repo.dump
     5 
     5 
     6 import sys
     6 import sys
     7 from mercurial import revlog, node, util, transaction
     7 from mercurial import revlog, node, util, transaction
       
     8 
       
     9 for fp in (sys.stdin, sys.stdout, sys.stderr):
       
    10     util.set_binary(fp)
     8 
    11 
     9 opener = util.opener('.', False)
    12 opener = util.opener('.', False)
    10 tr = transaction.transaction(sys.stderr.write, opener, "undump.journal")
    13 tr = transaction.transaction(sys.stderr.write, opener, "undump.journal")
    11 while 1:
    14 while 1:
    12     l = sys.stdin.readline()
    15     l = sys.stdin.readline()