Fun with loading extensions

Chad Dombrova chadrik at gmail.com
Mon Jun 14 12:22:30 CDT 2010


>
> So far I
> don't have a good answer, apart from "the subclass trick is evil:
> don't use it".
>

i disagree. i think that subclassing is much more powerful, and that the use
of wrapfunction on class methods should be discouraged.  i think there is a
reason that every official mercurial extension that wraps localrepo -- mq,
bookmarks, keyword, parentrevspec, and inotify -- all use subclassing:  it's
a more powerful and direct approach.  the main problem here is that the
official workflow needs to be decided and proper documentation needs to be
provided.

-chad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100614/04f0a9d3/attachment.htm>


More information about the Mercurial-devel mailing list