# HG changeset patch # User Pierre-Yves David # Date 1492681280 -7200 # Node ID fff7a678f6591a153b6560acec8e8d3c4b3474e4 # Parent 72ba9d4418e0c26d3ea0d5ffcac3814dabe06ad5 extension: simplify the extensions helper hierarchy If one mode depends on the other, its extensions helper is merged. diff -r 72ba9d4418e0 -r fff7a678f659 hgext3rd/evolve/__init__.py --- a/hgext3rd/evolve/__init__.py Thu Apr 20 11:40:08 2017 +0200 +++ b/hgext3rd/evolve/__init__.py Thu Apr 20 11:41:20 2017 +0200 @@ -113,7 +113,6 @@ from . import ( checkheads, debugcmd, - obsdiscovery, obsexchange, exthelper, metadata, @@ -146,7 +145,6 @@ eh = exthelper.exthelper() eh.merge(debugcmd.eh) -eh.merge(obsdiscovery.eh) eh.merge(obsexchange.eh) eh.merge(checkheads.eh) uisetup = eh.final_uisetup diff -r 72ba9d4418e0 -r fff7a678f659 hgext3rd/evolve/obsexchange.py --- a/hgext3rd/evolve/obsexchange.py Thu Apr 20 11:40:08 2017 +0200 +++ b/hgext3rd/evolve/obsexchange.py Thu Apr 20 11:41:20 2017 +0200 @@ -39,6 +39,7 @@ ) eh = exthelper.exthelper() +eh.merge(obsdiscovery.eh) obsexcmsg = utility.obsexcmsg obsexcprg = utility.obsexcprg diff -r 72ba9d4418e0 -r fff7a678f659 hgext3rd/evolve/serveronly.py --- a/hgext3rd/evolve/serveronly.py Thu Apr 20 11:40:08 2017 +0200 +++ b/hgext3rd/evolve/serveronly.py Thu Apr 20 11:41:20 2017 +0200 @@ -17,7 +17,6 @@ from . import ( exthelper, metadata, - obsdiscovery, obsexchange, ) except ValueError as exc: @@ -28,7 +27,6 @@ from evolve import ( exthelper, metadata, - obsdiscovery, obsexchange, ) @@ -38,7 +36,6 @@ buglink = metadata.buglink eh = exthelper.exthelper() -eh.merge(obsdiscovery.eh) eh.merge(obsexchange.eh) uisetup = eh.final_uisetup extsetup = eh.final_extsetup