On Jan 30, 9:30 am, Remy Blank <[email protected]> wrote:
> > i want to get all post commit messages from a trac environment. The
> > thing i only did, implemented methods "changeset_added" and
> > "changeset_modified" from the IRepositoryChangeListener interface in
> > my plugin code (i'm using the mustirepos trac version). But after
> > adding or changing of source code in repository i still get no events,
> > the methods will be not called. What is the right way to use the
> > interface?
>
> You have to add calls to "trac-admin $ENV changeset added" and
> "trac-admin $ENV changeset modified" in your post-commit and
> post-revprop-change hooks, respectively (for SVN, or only the first one
> in both "commit" and "changegroup" hooks for Mercurial).

That just strikes me as a bit... unexpected... Like all listeners in
Trac, I assume these methods will fire whenever sync() picks up a new
changeset or resyncs and old one, and not be something that needs
repository hooks and command-line calls? It just feels very un-Trac
with regards to API and implementation - and what any plugins may
reasonably expect from the core configuration. It is also an
additional burden for administrators that needs to keep code, hook-
scripts and configurations coordinated to make this work - now also
across multiple repositories that may be added, moved or removed...
Not to mentioned the cases where the repository is scoped, and
changesets may need to be distributed to a variety of different Trac
instances.

It just feels wrong... Any change of removing this "external" element?


:::simon



-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to