diff -r b5e12039e6e0 -r f9232b0310ef mercurial/scmutil.py --- a/mercurial/scmutil.py Thu Sep 27 17:00:00 2018 +0200 +++ b/mercurial/scmutil.py Thu Sep 27 16:52:25 2018 +0200 @@ -1651,6 +1651,17 @@ raise error.ProgrammingError(errormsg) repo.ui.status(msg) + # search new changesets directly pulled as obsolete + obsadded = unfi.revs('%d: and obsolete()', origrepolen) + cl = repo.changelog + extinctadded = [r for r in obsadded if r not in cl] + if extinctadded: + # They are not just obsolete, but obsolete and invisible + # we call them "extinct" internally but the terms have not been + # exposed to users. + msg = '(%d other changesets obsolete on arrival)\n' + repo.ui.status(msg % len(extinctadded)) + @reportsummary def reportphasechanges(repo, tr): """Report statistics of phase changes for changesets pre-existing