tests/test-empty-manifest-index.t
changeset 48198 61ce70fd420e
child 48199 9d0e5629cfbf
equal deleted inserted replaced
48197:63e86fc9bfec 48198:61ce70fd420e
       
     1 Create a repo such that the changelog entry refers to a null manifest node:
       
     2 
       
     3   $ hg init a
       
     4   $ cd a
       
     5   $ hg log
       
     6   $ touch x
       
     7   $ hg add x
       
     8   $ hg commit -m "init"
       
     9   $ hg rm x
       
    10   $ hg commit -q --amend
       
    11 
       
    12   $ wc -c < .hg/store/00manifest.i
       
    13   0
       
    14 
       
    15 Make sure that the manifest can be read (and is empty):
       
    16 
       
    17   $ hg --config rhg.on-unsupported=abort files -r .
       
    18   [1]
       
    19 
       
    20 Test a null changelog rev, too:
       
    21 
       
    22   $ hg --config rhg.on-unsupported=abort files -r 0000000000000000000000000000000000000000
       
    23   [1]