discovery: directly merge the 'obsdiscovery' exthelper in top level extensions
There is no reason to proxy it through the 'obsexchange' submodule.
--- a/hgext3rd/evolve/__init__.py Tue Mar 07 15:47:09 2017 +0100
+++ b/hgext3rd/evolve/__init__.py Tue Mar 07 15:49:22 2017 +0100
@@ -111,6 +111,7 @@
from mercurial.node import nullid
from . import (
+ obsdiscovery,
obsexchange,
exthelper,
metadata,
@@ -148,6 +149,7 @@
eh = exthelper.exthelper()
+eh.merge(obsdiscovery.eh)
eh.merge(obsexchange.eh)
uisetup = eh.final_uisetup
extsetup = eh.final_extsetup
--- a/hgext3rd/evolve/obsexchange.py Tue Mar 07 15:47:09 2017 +0100
+++ b/hgext3rd/evolve/obsexchange.py Tue Mar 07 15:49:22 2017 +0100
@@ -41,7 +41,6 @@
)
eh = exthelper.exthelper()
-eh.merge(obsdiscovery.eh)
obsexcmsg = utility.obsexcmsg
obsexcprg = utility.obsexcprg
--- a/hgext3rd/evolve/serveronly.py Tue Mar 07 15:47:09 2017 +0100
+++ b/hgext3rd/evolve/serveronly.py Tue Mar 07 15:49:22 2017 +0100
@@ -17,6 +17,7 @@
from . import (
exthelper,
metadata,
+ obsdiscovery,
obsexchange,
)
except ValueError as exc:
@@ -27,6 +28,7 @@
from evolve import (
exthelper,
metadata,
+ obsdiscovery,
obsexchange,
)
@@ -36,6 +38,7 @@
buglink = metadata.buglink
eh = exthelper.exthelper()
+eh.merge(obsdiscovery.eh)
eh.merge(obsexchange.eh)
uisetup = eh.final_uisetup
extsetup = eh.final_extsetup