mercurial/exchange.py
changeset 22354 a89add6c6b2f
parent 22353 47e3420ae889
child 22390 e2806b8613ca
--- a/mercurial/exchange.py	Fri Aug 29 12:36:17 2014 +0200
+++ b/mercurial/exchange.py	Tue Aug 26 12:47:41 2014 +0200
@@ -835,6 +835,11 @@
     else:
         if pullop.heads is None and list(pullop.common) == [nullid]:
             pullop.repo.ui.status(_("requesting all changes\n"))
+    if obsolete._enabled:
+        remoteversions = bundle2.obsmarkersversion(remotecaps)
+        if obsolete.commonversion(remoteversions) is not None:
+            kwargs['obsmarkers'] = True
+            pullop.todosteps.remove('obsmarkers')
     _pullbundle2extraprepare(pullop, kwargs)
     if kwargs.keys() == ['format']:
         return # nothing to pull