mercurial/bundle2.py
changeset 24733 c00e4338fa4b
parent 24686 e0e28e910fa3
child 24741 bb67e52362d6
--- a/mercurial/bundle2.py	Tue Apr 14 14:59:37 2015 -0400
+++ b/mercurial/bundle2.py	Tue Apr 14 11:44:04 2015 -0400
@@ -1217,7 +1217,11 @@
 def handleobsmarker(op, inpart):
     """add a stream of obsmarkers to the repo"""
     tr = op.gettransaction()
-    new = op.repo.obsstore.mergemarkers(tr, inpart.read())
+    markerdata = inpart.read()
+    if op.ui.config('experimental', 'obsmarkers-exchange-debug', False):
+        op.ui.write(('obsmarker-exchange: %i bytes received\n')
+                    % len(markerdata))
+    new = op.repo.obsstore.mergemarkers(tr, markerdata)
     if new:
         op.repo.ui.status(_('%i new obsolescence markers\n') % new)
     op.records.add('obsmarkers', {'new': new})