# HG changeset patch # User Pierre-Yves David # Date 2014-08-25 16:09:54 # Node ID c380fe290290366764a780501a3950e003f8de4c # Parent 60786c8a2f70dc84b576261422fa5880b549c4a0 obsmarker: write a message with the number of markers added through bundle2 diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -904,4 +904,6 @@ def handlepushkeyreply(op, inpart): def handleobsmarker(op, inpart): """add a stream of obsmarkers to the repo""" tr = op.gettransaction() - op.repo.obsstore.mergemarkers(tr, inpart.read()) + new = op.repo.obsstore.mergemarkers(tr, inpart.read()) + if new: + op.repo.ui.status(_('%i new obsolescence markers\n') % new)