##// END OF EJS Templates
r47281:d4688511 default
parent child Browse files
Show More
@@ -45,12 +45,23 b' use git diff to see rename'
45 #endif
45 #endif
46
46
47
47
48 $ cat > same-content.txt << EOF
49 > Here is some content that will be the same accros multiple file.
50 >
51 > This is done on purpose so that we end up in some merge situation, were the
52 > resulting content is the same as in the parent(s), but a new filenodes still
53 > need to be created to record some file history information (especially
54 > about copies).
55 > EOF
56
48 $ hg init repo-chain
57 $ hg init repo-chain
49 $ cd repo-chain
58 $ cd repo-chain
50
59
51 Add some linear rename initialy
60 Add some linear rename initialy
52
61
53 $ touch a b h
62 $ cp ../same-content.txt a
63 $ cp ../same-content.txt b
64 $ cp ../same-content.txt h
54 $ hg ci -Am 'i-0 initial commit: a b h'
65 $ hg ci -Am 'i-0 initial commit: a b h'
55 adding a
66 adding a
56 adding b
67 adding b
@@ -348,10 +359,10 b' Merge:'
348 $ hg commit -m "f-2: rename i -> d"
359 $ hg commit -m "f-2: rename i -> d"
349 $ hg debugindex d
360 $ hg debugindex d
350 rev linkrev nodeid p1 p2
361 rev linkrev nodeid p1 p2
351 0 2 01c2f5eabdc4 000000000000 000000000000 (no-changeset !)
362 0 2 d8252ab2e760 000000000000 000000000000 (no-changeset !)
352 0 2 b80de5d13875 000000000000 000000000000 (changeset !)
363 0 2 ae258f702dfe 000000000000 000000000000 (changeset !)
353 1 8 b004912a8510 000000000000 000000000000
364 1 8 b004912a8510 000000000000 000000000000
354 2 22 c72365ee036f 000000000000 000000000000 (no-changeset !)
365 2 22 7b79e2fe0c89 000000000000 000000000000 (no-changeset !)
355 $ hg up 'desc("b-1")'
366 $ hg up 'desc("b-1")'
356 3 files updated, 0 files merged, 0 files removed, 0 files unresolved (no-changeset !)
367 3 files updated, 0 files merged, 0 files removed, 0 files unresolved (no-changeset !)
357 2 files updated, 0 files merged, 0 files removed, 0 files unresolved (changeset !)
368 2 files updated, 0 files merged, 0 files removed, 0 files unresolved (changeset !)
@@ -1124,15 +1135,15 b' The bugs makes recorded copy is differen'
1124 $ hg manifest --debug --rev 'desc("d-2")' | grep '644 d'
1135 $ hg manifest --debug --rev 'desc("d-2")' | grep '644 d'
1125 b004912a8510032a0350a74daa2803dadfb00e12 644 d
1136 b004912a8510032a0350a74daa2803dadfb00e12 644 d
1126 $ hg manifest --debug --rev 'desc("b-1")' | grep '644 d'
1137 $ hg manifest --debug --rev 'desc("b-1")' | grep '644 d'
1127 01c2f5eabdc4ce2bdee42b5f86311955e6c8f573 644 d (no-changeset !)
1138 d8252ab2e760b0d4e5288fd44cbd15a0fa567e16 644 d (no-changeset !)
1128 b80de5d138758541c5f05265ad144ab9fa86d1db 644 d (changeset !)
1139 ae258f702dfeca05bf9b6a22a97a4b5645570f11 644 d (changeset !)
1129 $ hg debugindex d | head -n 4
1140 $ hg debugindex d | head -n 4
1130 rev linkrev nodeid p1 p2
1141 rev linkrev nodeid p1 p2
1131 0 2 01c2f5eabdc4 000000000000 000000000000 (no-changeset !)
1142 0 2 d8252ab2e760 000000000000 000000000000 (no-changeset !)
1132 0 2 b80de5d13875 000000000000 000000000000 (changeset !)
1143 0 2 ae258f702dfe 000000000000 000000000000 (changeset !)
1133 1 8 b004912a8510 000000000000 000000000000
1144 1 8 b004912a8510 000000000000 000000000000
1134 2 22 c72365ee036f 000000000000 000000000000 (no-changeset !)
1145 2 22 7b79e2fe0c89 000000000000 000000000000 (no-changeset !)
1135 2 25 68d5bca9df05 b80de5d13875 000000000000 (changeset !)
1146 2 25 5cce88bf349f ae258f702dfe 000000000000 (changeset !)
1136
1147
1137 Log output should not include a merge commit as it did not happen
1148 Log output should not include a merge commit as it did not happen
1138
1149
@@ -1183,30 +1194,30 b' Comparing with a merge with colliding re'
1183
1194
1184 #if no-changeset
1195 #if no-changeset
1185 $ hg manifest --debug --rev 'desc("mAEm-0")' | grep '644 f'
1196 $ hg manifest --debug --rev 'desc("mAEm-0")' | grep '644 f'
1186 eb806e34ef6be4c264effd5933d31004ad15a793 644 f
1197 2ff93c643948464ee1f871867910ae43a45b0bea 644 f
1187 $ hg manifest --debug --rev 'desc("mEAm-0")' | grep '644 f'
1198 $ hg manifest --debug --rev 'desc("mEAm-0")' | grep '644 f'
1188 eb806e34ef6be4c264effd5933d31004ad15a793 644 f
1199 2ff93c643948464ee1f871867910ae43a45b0bea 644 f
1189 $ hg manifest --debug --rev 'desc("a-2")' | grep '644 f'
1200 $ hg manifest --debug --rev 'desc("a-2")' | grep '644 f'
1190 0dd616bc7ab1a111921d95d76f69cda5c2ac539c 644 f
1201 b76eb76580df486c3d51d63c5c210d4dd43a8ac7 644 f
1191 $ hg manifest --debug --rev 'desc("e-2")' | grep '644 f'
1202 $ hg manifest --debug --rev 'desc("e-2")' | grep '644 f'
1192 6da5a2eecb9c833f830b67a4972366d49a9a142c 644 f
1203 e8825b386367b29fec957283a80bb47b47483fe1 644 f
1193 $ hg debugindex f
1204 $ hg debugindex f
1194 rev linkrev nodeid p1 p2
1205 rev linkrev nodeid p1 p2
1195 0 4 0dd616bc7ab1 000000000000 000000000000
1206 0 4 b76eb76580df 000000000000 000000000000
1196 1 10 6da5a2eecb9c 000000000000 000000000000
1207 1 10 e8825b386367 000000000000 000000000000
1197 2 19 eb806e34ef6b 0dd616bc7ab1 6da5a2eecb9c
1208 2 19 2ff93c643948 b76eb76580df e8825b386367
1198 #else
1209 #else
1199 $ hg manifest --debug --rev 'desc("mAEm-0")' | grep '644 f'
1210 $ hg manifest --debug --rev 'desc("mAEm-0")' | grep '644 f'
1200 b80de5d138758541c5f05265ad144ab9fa86d1db 644 f
1211 ae258f702dfeca05bf9b6a22a97a4b5645570f11 644 f
1201 $ hg manifest --debug --rev 'desc("mEAm-0")' | grep '644 f'
1212 $ hg manifest --debug --rev 'desc("mEAm-0")' | grep '644 f'
1202 b80de5d138758541c5f05265ad144ab9fa86d1db 644 f
1213 ae258f702dfeca05bf9b6a22a97a4b5645570f11 644 f
1203 $ hg manifest --debug --rev 'desc("a-2")' | grep '644 f'
1214 $ hg manifest --debug --rev 'desc("a-2")' | grep '644 f'
1204 b80de5d138758541c5f05265ad144ab9fa86d1db 644 f
1215 ae258f702dfeca05bf9b6a22a97a4b5645570f11 644 f
1205 $ hg manifest --debug --rev 'desc("e-2")' | grep '644 f'
1216 $ hg manifest --debug --rev 'desc("e-2")' | grep '644 f'
1206 b80de5d138758541c5f05265ad144ab9fa86d1db 644 f
1217 ae258f702dfeca05bf9b6a22a97a4b5645570f11 644 f
1207 $ hg debugindex f
1218 $ hg debugindex f
1208 rev linkrev nodeid p1 p2
1219 rev linkrev nodeid p1 p2
1209 0 4 b80de5d13875 000000000000 000000000000
1220 0 4 ae258f702dfe 000000000000 000000000000
1210 #endif
1221 #endif
1211
1222
1212 # Here the filelog based implementation is not looking at the rename
1223 # Here the filelog based implementation is not looking at the rename
@@ -1509,15 +1520,15 b' In this case, the file hash from "f-2" i'
1509 Details on this hash ordering pick:
1520 Details on this hash ordering pick:
1510
1521
1511 $ hg manifest --debug 'desc("g-1")' | egrep 'd$'
1522 $ hg manifest --debug 'desc("g-1")' | egrep 'd$'
1512 7bded9d9da1f7bf9bf7cbfb24fe1e6ccf68ec440 644 d (no-changeset !)
1523 17ec97e605773eb44a117d1136b3849bcdc1924f 644 d (no-changeset !)
1513 68d5bca9df0577b6bc2ea30ca724e13ead60da81 644 d (changeset !)
1524 5cce88bf349f7c742bb440f2c53f81db9c294279 644 d (changeset !)
1514 $ hg status --copies --rev 'desc("i-0")' --rev 'desc("g-1")' d
1525 $ hg status --copies --rev 'desc("i-0")' --rev 'desc("g-1")' d
1515 A d
1526 A d
1516 a (no-changeset no-compatibility !)
1527 a (no-changeset no-compatibility !)
1517
1528
1518 $ hg manifest --debug 'desc("f-2")' | egrep 'd$'
1529 $ hg manifest --debug 'desc("f-2")' | egrep 'd$'
1519 c72365ee036fca4fb27fd745459bfb6ea1ac6993 644 d (no-changeset !)
1530 7b79e2fe0c8924e0e598a82f048a7b024afa4d96 644 d (no-changeset !)
1520 b80de5d138758541c5f05265ad144ab9fa86d1db 644 d (changeset !)
1531 ae258f702dfeca05bf9b6a22a97a4b5645570f11 644 d (changeset !)
1521 $ hg status --copies --rev 'desc("i-0")' --rev 'desc("f-2")' d
1532 $ hg status --copies --rev 'desc("i-0")' --rev 'desc("f-2")' d
1522 A d
1533 A d
1523 h (no-changeset no-compatibility !)
1534 h (no-changeset no-compatibility !)
General Comments 0
You need to be logged in to leave comments. Login now