contrib/dumprevlog
branchstable
changeset 49366 288de6f5d724
parent 48875 6000f5b25c9b
equal deleted inserted replaced
49364:e8ea403b1c46 49366:288de6f5d724
     1 #!/usr/bin/env python3
     1 #!/usr/bin/env python3
     2 # Dump revlogs as raw data stream
     2 # Dump revlogs as raw data stream
     3 # $ find .hg/store/ -name "*.i" | xargs dumprevlog > repo.dump
     3 # $ find .hg/store/ -name "*.i" | xargs dumprevlog > repo.dump
     4 
     4 
     5 from __future__ import absolute_import, print_function
       
     6 
     5 
     7 import sys
     6 import sys
     8 from mercurial.node import hex
     7 from mercurial.node import hex
     9 from mercurial import (
     8 from mercurial import (
    10     encoding,
     9     encoding,