Is extsetup() needed?

Yuya Nishihara yuya at tcha.org
Mon Oct 12 02:55:01 CDT 2009


Hi, all.

We have two similar functions to setup extension,
uisetup() and extsetup().

They're both called after loading all extensions, [1]_
uisetup() is by extensions.loadall(), extsetup() by _dispatch().
And they receive ui as an argument. [2]_

Is extsetup() needed?
At least, we can replace the appearance on hgext.record and hgext.highlight
by uisetup().

.. [1] since http://hg.intevation.org/mercurial/crew/rev/1c83938b6a8e
   [2] since http://hg.intevation.org/mercurial/crew/rev/8e6019b16a7d

Yuya


More information about the Mercurial-devel mailing list