changeset 2508:45abd0586c73

obsdiscovery: trust core to do the right thing if no discovery is available This is fixed for a long time now.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 30 May 2017 12:15:52 +0200
parents de6c61462e67
children 6da129b2b440
files hgext3rd/evolve/obsdiscovery.py
diffstat 1 files changed, 1 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- 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