I was a little confused if I should add the hooks by myself or if the
plugin does this job for me.
It works with this configuration:
created hgrc file in the mercurial repositorys .hg/ folder of the
server:
[hooks]
incoming.trac = /path/to/script.sh
created this shell script to execute the trac-admin command:
#!/bin/sh
# Notify trac when new Mercurial changesets arrive.
# Add to hgrc in the trac repository as
# [hooks]
# incoming.trac = /path/to/this/script.sh
/path/to/trac-admin /path/to/tracenv changeset added "$1" "$2"
the CommitTicketUpdater-plugin for trac has to be enabled too.
On Sep 28, 4:55 pm, Kilian Krockauer <[email protected]>
wrote:
> Hey, are you sure that the CommitTicketUpdater Plugin and your
> Mercurial repository aren't messing up with each other?
> I'm not into Mercurial but it might be worth a try to disable your
> Plugin or disable mercurials Plugins, if possible.
>
> I've got the PostCommit Hooks working but am not using mercurial
> repositories and it works fine.
> Also I suggest reading the Wikis to the Plugins carefully, you might
> have misconfigured something.
>
> Regards
>
> K
>
> On 28 Sep., 07:09, chris2k <[email protected]> wrote:
>
> > I've got trac running with mercurial multiple repository support quite
> > nicely. I can browse my repos and I can see all changes commited to it
> > instantly.
> > But closing a ticket by naming them in the commit message does not
> > work.
> > e.g.
> > "Fixed a critical bug. Fixes #123"
> > does not close ticket #123 and set it to "fixed".
>
> > I've readhttp://trac.edgewall.org/wiki/TracRepositoryAdmin#ExplicitSync
> > and it says "[...] no initial resynchronization or any hooks are
> > necessary for Mercurial repositories [...]"
> > The CommitTicketUpdater plugin is activated too.
> > And the hook examples are aimed to svn.
>
> > How do I close tickets through commit messages?
>
>
--
You received this message because you are subscribed to the Google Groups "Trac
Users" 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-users?hl=en.