[PATCH 1 of 1] extensions: load all extensions first, call setup functions thereafter

Simon Heimberg simohe at besonet.ch
Thu Aug 13 01:15:20 CDT 2009


Am Donnerstag, den 13.08.2009, 06:07 +0000 schrieb TK Soh:
> On Thu, Aug 13, 2009 at 6:03 AM, Simon Heimberg<simohe at besonet.ch> wrote:
> > Am Donnerstag, den 13.08.2009, 05:41 +0000 schrieb TK Soh:
> >> On Wed, Aug 12, 2009 at 11:54 AM, Simon Heimberg<simohe at besonet.ch> wrote:
> >> > # HG changeset patch
> >> > # User Simon Heimberg <simohe at besonet.ch>
> >> > # Date 1250075746 -7200
> >> > # Node ID 3bc8dde7c38d6985d8f111165107402002983fe4
> >> > # Parent  527eddab742d5db6df5f5ac8d3c46de98004f9b3
> >> > extensions: load all extensions first, call setup functions thereafter
> >> >
> >> > new order for extension calls:
> >> > - load all extensions
> >> > - uisetup(ui) for all extensions
> >> > - extsetup() for all extensions
> >>
> >> Is this is right time pass ui to extsetup()?
> >
> > Probably yes. Like this?
> >
> > try:
> >    mod.uisetup(ui)
> > except TypeError:
> >    mod.uisetup()
> 
> Ehh... Do you mean mod.extsetup(ui)?
Sorry, of course.

try:
    mod.extsetup(ui)
except TypeError:
    mod.extsetup()

> 
> >> > - add commands to commandtable for all extensions
> >> > - reposetup(ui, repo) for all extensions
> >> >
> > [snip]
> >


More information about the Mercurial-devel mailing list