##// END OF EJS Templates
pullreport: issue a message about "extinct" pulled changesets...
Boris Feld -
r39935:f9232b03 default
parent child Browse files
Show More
@@ -1651,6 +1651,17 b' def registersummarycallback(repo, otr, t'
1651 1651 raise error.ProgrammingError(errormsg)
1652 1652 repo.ui.status(msg)
1653 1653
1654 # search new changesets directly pulled as obsolete
1655 obsadded = unfi.revs('%d: and obsolete()', origrepolen)
1656 cl = repo.changelog
1657 extinctadded = [r for r in obsadded if r not in cl]
1658 if extinctadded:
1659 # They are not just obsolete, but obsolete and invisible
1660 # we call them "extinct" internally but the terms have not been
1661 # exposed to users.
1662 msg = '(%d other changesets obsolete on arrival)\n'
1663 repo.ui.status(msg % len(extinctadded))
1664
1654 1665 @reportsummary
1655 1666 def reportphasechanges(repo, tr):
1656 1667 """Report statistics of phase changes for changesets pre-existing
@@ -170,6 +170,7 b' Actual testing'
170 170 # unbundling: adding manifests
171 171 # unbundling: adding file changes
172 172 # unbundling: added 1 changesets with 1 changes to 1 files (+1 heads)
173 # unbundling: (1 other changesets obsolete on arrival)
173 174 # unbundling: (run 'hg heads' to see heads)
174 175
175 176 $ testrevs 'desc("C-A1")'
@@ -248,6 +249,7 b' Actual testing'
248 249 # unbundling: added 2 changesets with 2 changes to 2 files (+1 heads)
249 250 # unbundling: 3 new obsolescence markers
250 251 # unbundling: new changesets cf2c22470d67 (1 drafts)
252 # unbundling: (1 other changesets obsolete on arrival)
251 253 # unbundling: (run 'hg heads' to see heads)
252 254
253 255 chain with prune children
@@ -339,6 +341,7 b' problematic)'
339 341 # unbundling: adding file changes
340 342 # unbundling: added 1 changesets with 1 changes to 1 files
341 343 # unbundling: 1 new obsolescence markers
344 # unbundling: (1 other changesets obsolete on arrival)
342 345 # unbundling: (run 'hg update' to get a working copy)
343 346
344 347 $ testrevs 'desc("C-A1")'
@@ -437,6 +440,7 b' bundling multiple revisions'
437 440 # unbundling: added 3 changesets with 3 changes to 3 files (+1 heads)
438 441 # unbundling: 3 new obsolescence markers
439 442 # unbundling: new changesets cf2c22470d67 (1 drafts)
443 # unbundling: (2 other changesets obsolete on arrival)
440 444 # unbundling: (run 'hg heads' to see heads)
441 445
442 446 chain with precursors also pruned
@@ -503,6 +507,7 b' Actual testing'
503 507 # unbundling: adding manifests
504 508 # unbundling: adding file changes
505 509 # unbundling: added 1 changesets with 1 changes to 1 files (+1 heads)
510 # unbundling: (1 other changesets obsolete on arrival)
506 511 # unbundling: (run 'hg heads' to see heads)
507 512
508 513 $ testrevs 'desc("C-A1")'
@@ -578,6 +583,7 b' Actual testing'
578 583 # unbundling: added 2 changesets with 2 changes to 2 files (+1 heads)
579 584 # unbundling: 3 new obsolescence markers
580 585 # unbundling: new changesets cf2c22470d67 (1 drafts)
586 # unbundling: (1 other changesets obsolete on arrival)
581 587 # unbundling: (run 'hg heads' to see heads)
582 588
583 589 chain with missing prune
@@ -836,6 +842,7 b' Actual testing'
836 842 # unbundling: adding manifests
837 843 # unbundling: adding file changes
838 844 # unbundling: added 1 changesets with 1 changes to 1 files (+1 heads)
845 # unbundling: (1 other changesets obsolete on arrival)
839 846 # unbundling: (run 'hg heads' to see heads)
840 847
841 848 $ testrevs 'desc("C-B")'
@@ -864,6 +871,7 b' Actual testing'
864 871 # unbundling: adding manifests
865 872 # unbundling: adding file changes
866 873 # unbundling: added 1 changesets with 1 changes to 1 files (+1 heads)
874 # unbundling: (1 other changesets obsolete on arrival)
867 875 # unbundling: (run 'hg heads' to see heads)
868 876
869 877 $ testrevs 'desc("C-C")'
@@ -892,6 +900,7 b' Actual testing'
892 900 # unbundling: adding manifests
893 901 # unbundling: adding file changes
894 902 # unbundling: added 1 changesets with 1 changes to 1 files (+1 heads)
903 # unbundling: (1 other changesets obsolete on arrival)
895 904 # unbundling: (run 'hg heads' to see heads)
896 905
897 906 $ testrevs 'desc("C-D")'
@@ -920,6 +929,7 b' Actual testing'
920 929 # unbundling: adding manifests
921 930 # unbundling: adding file changes
922 931 # unbundling: added 1 changesets with 1 changes to 1 files (+1 heads)
932 # unbundling: (1 other changesets obsolete on arrival)
923 933 # unbundling: (run 'hg heads' to see heads)
924 934
925 935 $ testrevs 'desc("C-E")'
@@ -1018,6 +1028,7 b' Bundle multiple revisions'
1018 1028 # unbundling: adding manifests
1019 1029 # unbundling: adding file changes
1020 1030 # unbundling: added 2 changesets with 2 changes to 2 files (+2 heads)
1031 # unbundling: (2 other changesets obsolete on arrival)
1021 1032 # unbundling: (run 'hg heads' to see heads)
1022 1033
1023 1034 * top one and other divergent
@@ -1087,6 +1098,7 b' Bundle multiple revisions'
1087 1098 # unbundling: 7 new obsolescence markers
1088 1099 # unbundling: obsoleted 2 changesets
1089 1100 # unbundling: new changesets 2f20ff6509f0 (1 drafts)
1101 # unbundling: (1 other changesets obsolete on arrival)
1090 1102 # unbundling: (run 'hg heads' to see heads)
1091 1103
1092 1104 * top one and initial precursors
@@ -1155,6 +1167,7 b' Bundle multiple revisions'
1155 1167 # unbundling: 6 new obsolescence markers
1156 1168 # unbundling: obsoleted 3 changesets
1157 1169 # unbundling: new changesets 2f20ff6509f0 (1 drafts)
1170 # unbundling: (1 other changesets obsolete on arrival)
1158 1171 # unbundling: (run 'hg heads' to see heads)
1159 1172
1160 1173 * top one and one of the split
@@ -1224,6 +1237,7 b' Bundle multiple revisions'
1224 1237 # unbundling: 7 new obsolescence markers
1225 1238 # unbundling: obsoleted 2 changesets
1226 1239 # unbundling: new changesets 2f20ff6509f0 (1 drafts)
1240 # unbundling: (1 other changesets obsolete on arrival)
1227 1241 # unbundling: (run 'hg heads' to see heads)
1228 1242
1229 1243 * all
@@ -1299,6 +1313,7 b' Bundle multiple revisions'
1299 1313 # unbundling: added 5 changesets with 5 changes to 5 files (+4 heads)
1300 1314 # unbundling: 9 new obsolescence markers
1301 1315 # unbundling: new changesets 2f20ff6509f0 (1 drafts)
1316 # unbundling: (4 other changesets obsolete on arrival)
1302 1317 # unbundling: (run 'hg heads' to see heads)
1303 1318
1304 1319 changeset pruned on its own
@@ -1372,6 +1387,7 b' Actual testing'
1372 1387 # unbundling: adding file changes
1373 1388 # unbundling: added 1 changesets with 1 changes to 1 files
1374 1389 # unbundling: 1 new obsolescence markers
1390 # unbundling: (1 other changesets obsolete on arrival)
1375 1391 # unbundling: (run 'hg update' to get a working copy)
1376 1392 $ testrevs 'desc("C-")'
1377 1393 ### Matched revisions###
@@ -1401,4 +1417,5 b' Actual testing'
1401 1417 # unbundling: added 2 changesets with 2 changes to 2 files
1402 1418 # unbundling: 1 new obsolescence markers
1403 1419 # unbundling: new changesets 9ac430e15fca (1 drafts)
1420 # unbundling: (1 other changesets obsolete on arrival)
1404 1421 # unbundling: (run 'hg update' to get a working copy)
@@ -85,6 +85,7 b' check that bundle is not affected'
85 85 adding manifests
86 86 adding file changes
87 87 added 1 changesets with 0 changes to 1 files (+1 heads)
88 (1 other changesets obsolete on arrival)
88 89 (run 'hg heads' to see heads)
89 90
90 91 check-that bundle can contain markers:
@@ -277,6 +277,7 b' Pulling the missing data makes it work'
277 277 adding manifests
278 278 adding file changes
279 279 added 1 changesets with 1 changes to 1 files (+1 heads)
280 (1 other changesets obsolete on arrival)
280 281 (run 'hg heads' to see heads)
281 282 $ hg push
282 283 pushing to $TESTTMP/remote
@@ -411,6 +411,7 b' successors do not exist in Bob repositor'
411 411 adding manifests
412 412 adding file changes
413 413 added 2 changesets with 0 changes to 2 files (+1 heads)
414 (2 other changesets obsolete on arrival)
414 415 (run 'hg heads' to see heads)
415 416 $ hg log -G
416 417 o 4:77ae25d99ff0 c_B2
@@ -455,6 +456,7 b' decision is made in that case, so receiv'
455 456 adding manifests
456 457 adding file changes
457 458 added 2 changesets with 0 changes to 2 files (+1 heads)
459 (2 other changesets obsolete on arrival)
458 460 (run 'hg heads' to see heads)
459 461 $ hg log -G
460 462 o 4:77ae25d99ff0 c_B2
@@ -1602,6 +1602,7 b' Test adding changeset after obsmarkers a'
1602 1602 adding manifests
1603 1603 adding file changes
1604 1604 added 1 changesets with 1 changes to 1 files
1605 (1 other changesets obsolete on arrival)
1605 1606 (run 'hg update' to get a working copy)
1606 1607 $ hg log -G
1607 1608 @ 7:7ae79c5d60f0 (draft) [tip ] dd
General Comments 0
You need to be logged in to leave comments. Login now