contrib/dumprevlog
changeset 48875 6000f5b25c9b
parent 47177 5d5abfdc32d8
equal deleted inserted replaced
48874:af0b21d5a930 48875:6000f5b25c9b
     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,