equal
deleted
inserted
replaced
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() |