tests/test-copy.t
changeset 49251 ccd76e292be5
parent 47127 5ffc6c18fb96
child 49252 4141951dacff
equal deleted inserted replaced
49250:61cf3d39fd9e 49251:ccd76e292be5
    59   
    59   
    60 
    60 
    61 this should show a revision linked to changeset 0
    61 this should show a revision linked to changeset 0
    62 
    62 
    63   $ hg debugindex a
    63   $ hg debugindex a
    64      rev linkrev nodeid       p1           p2
    64      rev linkrev       nodeid           p1           p2
    65        0       0 b789fdd96dc2 000000000000 000000000000
    65        0       0 b789fdd96dc2 000000000000 000000000000
    66 
    66 
    67 we should see one log entry for b
    67 we should see one log entry for b
    68 
    68 
    69   $ hg log b
    69   $ hg log b
    75   
    75   
    76 
    76 
    77 this should show a revision linked to changeset 1
    77 this should show a revision linked to changeset 1
    78 
    78 
    79   $ hg debugindex b
    79   $ hg debugindex b
    80      rev linkrev nodeid       p1           p2
    80      rev linkrev       nodeid           p1           p2
    81        0       1 37d9b5d994ea 000000000000 000000000000
    81        0       1 37d9b5d994ea 000000000000 000000000000
    82 
    82 
    83 this should show the rename information in the metadata
    83 this should show the rename information in the metadata
    84 
    84 
    85   $ hg debugdata b 0 | head -3 | tail -2
    85   $ hg debugdata b 0 | head -3 | tail -2
   185   $ hg commit -m2
   185   $ hg commit -m2
   186   $ hg st -C
   186   $ hg st -C
   187 
   187 
   188 should match
   188 should match
   189   $ hg debugindex foo
   189   $ hg debugindex foo
   190      rev linkrev nodeid       p1           p2
   190      rev linkrev       nodeid           p1           p2
   191        0       0 2ed2a3912a0b 000000000000 000000000000
   191        0       0 2ed2a3912a0b 000000000000 000000000000
   192   $ hg debugrename bar
   192   $ hg debugrename bar
   193   bar renamed from foo:2ed2a3912a0b24502043eae84ee4b279c18b90dd
   193   bar renamed from foo:2ed2a3912a0b24502043eae84ee4b279c18b90dd
   194 
   194 
   195   $ echo bleah > foo
   195   $ echo bleah > foo
   215 
   215 
   216   $ hg commit -m3
   216   $ hg commit -m3
   217 
   217 
   218 should show no parents for tip
   218 should show no parents for tip
   219   $ hg debugindex bar
   219   $ hg debugindex bar
   220      rev linkrev nodeid       p1           p2
   220      rev linkrev       nodeid           p1           p2
   221        0       1 7711d36246cc 000000000000 000000000000
   221        0       1 7711d36246cc 000000000000 000000000000
   222        1       2 bdf70a2b8d03 7711d36246cc 000000000000
   222        1       2 bdf70a2b8d03 7711d36246cc 000000000000
   223        2       3 b2558327ea8d 000000000000 000000000000
   223        2       3 b2558327ea8d 000000000000 000000000000
   224 should match
   224 should match
   225   $ hg debugindex foo
   225   $ hg debugindex foo
   226      rev linkrev nodeid       p1           p2
   226      rev linkrev       nodeid           p1           p2
   227        0       0 2ed2a3912a0b 000000000000 000000000000
   227        0       0 2ed2a3912a0b 000000000000 000000000000
   228        1       2 dd12c926cf16 2ed2a3912a0b 000000000000
   228        1       2 dd12c926cf16 2ed2a3912a0b 000000000000
   229   $ hg debugrename bar
   229   $ hg debugrename bar
   230   bar renamed from foo:dd12c926cf165e3eb4cf87b084955cb617221c17
   230   bar renamed from foo:dd12c926cf165e3eb4cf87b084955cb617221c17
   231 
   231