--- a/contrib/dumprevlog Tue May 04 08:54:28 2021 -0700
+++ b/contrib/dumprevlog Tue Apr 06 05:20:24 2021 +0200
@@ -13,6 +13,10 @@
)
from mercurial.utils import procutil
+from mercurial.revlogutils import (
+ constants as revlog_constants,
+)
+
for fp in (sys.stdin, sys.stdout, sys.stderr):
procutil.setbinary(fp)
@@ -32,7 +36,11 @@
for f in sys.argv[1:]:
- r = revlog.revlog(binopen, encoding.strtolocal(f))
+ r = revlog.revlog(
+ binopen,
+ target=(revlog_constants.KIND_OTHER, b'dump-revlog'),
+ indexfile=encoding.strtolocal(f),
+ )
print("file:", f)
for i in r:
n = r.node(i)