tests/test-treemanifest.t
changeset 27271 2a31433a59ba
parent 27251 d9bfe6289acf
child 27432 77d25b913f80
equal deleted inserted replaced
27270:ba5f20450b10 27271:2a31433a59ba
    30   $ echo 1 > e
    30   $ echo 1 > e
    31   $ hg ci -Aqm 'add dir1'
    31   $ hg ci -Aqm 'add dir1'
    32   $ hg debugdata -m 1
    32   $ hg debugdata -m 1
    33   a\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe (esc)
    33   a\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe (esc)
    34   b\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe (esc)
    34   b\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe (esc)
    35   dir1\x008b3ffd73f901e83304c83d33132c8e774ceac44ed (esc)
    35   dir1\x008b3ffd73f901e83304c83d33132c8e774ceac44et (esc)
    36   e\x00b8e02f6433738021a065f94175c7cd23db5f05be (esc)
    36   e\x00b8e02f6433738021a065f94175c7cd23db5f05be (esc)
    37   $ hg debugdata --dir dir1 0
    37   $ hg debugdata --dir dir1 0
    38   a\x00b8e02f6433738021a065f94175c7cd23db5f05be (esc)
    38   a\x00b8e02f6433738021a065f94175c7cd23db5f05be (esc)
    39   b\x00b8e02f6433738021a065f94175c7cd23db5f05be (esc)
    39   b\x00b8e02f6433738021a065f94175c7cd23db5f05be (esc)
    40 
    40 
   122   $ cat dir1/b
   122   $ cat dir1/b
   123   6
   123   6
   124   $ hg debugindex --dir dir1
   124   $ hg debugindex --dir dir1
   125      rev    offset  length  delta linkrev nodeid       p1           p2
   125      rev    offset  length  delta linkrev nodeid       p1           p2
   126        0         0      54     -1       1 8b3ffd73f901 000000000000 000000000000
   126        0         0      54     -1       1 8b3ffd73f901 000000000000 000000000000
   127        1        54      68      0       2 b66d046c644f 8b3ffd73f901 000000000000
   127        1        54      68      0       2 68e9d057c5a8 8b3ffd73f901 000000000000
   128        2       122      12      1       4 b87265673c8a b66d046c644f 000000000000
   128        2       122      12      1       4 4698198d2624 68e9d057c5a8 000000000000
   129        3       134      55      1       5 aa5d3adcec72 b66d046c644f 000000000000
   129        3       134      55      1       5 44844058ccce 68e9d057c5a8 000000000000
   130        4       189      55      1       6 e29b066b91ad b66d046c644f 000000000000
   130        4       189      55      1       6 bf3d9b744927 68e9d057c5a8 000000000000
   131        5       244      55      4       7 a120ce2b83f5 e29b066b91ad aa5d3adcec72
   131        5       244      55      4       7 dde7c0af2a03 bf3d9b744927 44844058ccce
   132 
   132 
   133 Merge keeping directory from parent 1 does not create revlog entry. (Note that
   133 Merge keeping directory from parent 1 does not create revlog entry. (Note that
   134 dir1's manifest does change, but only because dir1/a's filelog changes.)
   134 dir1's manifest does change, but only because dir1/a's filelog changes.)
   135 
   135 
   136   $ hg co 'desc("add dir2")'
   136   $ hg co 'desc("add dir2")'
   257      rev    offset  length  delta linkrev nodeid       p1           p2
   257      rev    offset  length  delta linkrev nodeid       p1           p2
   258        0         0      80     -1       0 40536115ed9e 000000000000 000000000000
   258        0         0      80     -1       0 40536115ed9e 000000000000 000000000000
   259        1        80      83      0       1 f3376063c255 40536115ed9e 000000000000
   259        1        80      83      0       1 f3376063c255 40536115ed9e 000000000000
   260        2       163      89      0       2 5d9b9da231a2 40536115ed9e 000000000000
   260        2       163      89      0       2 5d9b9da231a2 40536115ed9e 000000000000
   261        3       252      83      2       3 d17d663cbd8a 5d9b9da231a2 f3376063c255
   261        3       252      83      2       3 d17d663cbd8a 5d9b9da231a2 f3376063c255
   262        4       335     124      1       4 c05a51345f86 f3376063c255 000000000000
   262        4       335     124      1       4 51e32a8c60ee f3376063c255 000000000000
   263        5       459     124      2       5 82594b1f557d 5d9b9da231a2 f3376063c255
   263        5       459     126      2       5 cc5baa78b230 5d9b9da231a2 f3376063c255
   264 
   264 
   265 
   265 
   266 Status across flat/tree boundary should work
   266 Status across flat/tree boundary should work
   267 
   267 
   268   $ hg status --rev '.^' --rev .
   268   $ hg status --rev '.^' --rev .
   273 
   273 
   274 Turning off treemanifest config has no effect
   274 Turning off treemanifest config has no effect
   275 
   275 
   276   $ hg debugindex .hg/store/meta/dir1/00manifest.i
   276   $ hg debugindex .hg/store/meta/dir1/00manifest.i
   277      rev    offset  length  delta linkrev nodeid       p1           p2
   277      rev    offset  length  delta linkrev nodeid       p1           p2
   278        0         0     125     -1       4 63c9c0557d24 000000000000 000000000000
   278        0         0     127     -1       4 064927a0648a 000000000000 000000000000
   279        1       125     109      0       5 23d12a1f6e0e 000000000000 000000000000
   279        1       127     111      0       5 25ecb8cb8618 000000000000 000000000000
   280   $ echo 2 > dir1/a
   280   $ echo 2 > dir1/a
   281   $ hg --config experimental.treemanifest=False ci -qm 'modify dir1/a'
   281   $ hg --config experimental.treemanifest=False ci -qm 'modify dir1/a'
   282   $ hg debugindex .hg/store/meta/dir1/00manifest.i
   282   $ hg debugindex .hg/store/meta/dir1/00manifest.i
   283      rev    offset  length  delta linkrev nodeid       p1           p2
   283      rev    offset  length  delta linkrev nodeid       p1           p2
   284        0         0     125     -1       4 63c9c0557d24 000000000000 000000000000
   284        0         0     127     -1       4 064927a0648a 000000000000 000000000000
   285        1       125     109      0       5 23d12a1f6e0e 000000000000 000000000000
   285        1       127     111      0       5 25ecb8cb8618 000000000000 000000000000
   286        2       234      55      1       6 3cb2d87b4250 23d12a1f6e0e 000000000000
   286        2       238      55      1       6 5b16163a30c6 25ecb8cb8618 000000000000
   287 
   287 
   288 Create deeper repo with tree manifests.
   288 Create deeper repo with tree manifests.
   289 
   289 
   290   $ cd ..
   290   $ cd ..
   291   $ hg --config experimental.treemanifest=True init deeprepo
   291   $ hg --config experimental.treemanifest=True init deeprepo