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