obsdiscovery: trust core to do the right thing if no discovery is available
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 30 May 2017 12:15:52 +0200
changeset 2508 45abd0586c73
parent 2507 de6c61462e67
child 2509 6da129b2b440
obsdiscovery: trust core to do the right thing if no discovery is available This is fixed for a long time now.
hgext3rd/evolve/obsdiscovery.py
--- a/hgext3rd/evolve/obsdiscovery.py	Tue May 30 12:13:14 2017 +0200
+++ b/hgext3rd/evolve/obsdiscovery.py	Tue May 30 12:15:52 2017 +0200
@@ -93,18 +93,7 @@
         unfi = repo.unfiltered()
         cl = unfi.changelog
         if not pushop.remote.capable('_evoext_obshash_0'):
-            # do not trust core yet
-            # return orig(pushop)
-            nodes = [cl.node(r) for r in revs]
-            if nodes:
-                obsexcmsg(repo.ui, "computing markers relevant to %i nodes\n"
-                                   % len(nodes))
-                pushop.outobsmarkers = repo.obsstore.relevantmarkers(nodes)
-            else:
-                obsexcmsg(repo.ui, "markers already in sync\n")
-                pushop.outobsmarkers = []
-                pushop.outobsmarkers = repo.obsstore.relevantmarkers(nodes)
-            return
+            return orig(pushop)
 
         common = []
         missing = None