Bitbucket.org

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Mon Aug 4 02:00:20 CDT 2008


On Fri, Aug 1, 2008 at 12:32 PM, Jesper Noehr <jesper at noehr.org> wrote:
> On Bitbucket we have outsourced common hg operations into a mixin
> class, so you can do something like:
>
> class Repository(models.Model, repo.RepoMixin):
>        ...
>
> repo = Repository(...)
> repo.get_files('tip')
> repo.get_changeset('tip')
>
> With the code I provided you with from 'cx', you should be able to
> whip up something like that in about an hour. Otherwise, it's possible
> that this will be one of the components that we might open source
> later (needs to be more abstract than it is now.)

This could be interesting, especially if we ever manage to build a
common higher level model object API for use in GUIs, be they web
based or local. TortoiseHg could do with a bit of cleanup in this area
too, I think.

-parren


More information about the Mercurial mailing list