First of all, you can try to run the post-commit hook "manually", from
the command line. That's the easiest way to see what happens.

I run my own post-commit hook scripts (which are based on Trac's but
also manage the "merge" between the trunk and the developers'
branches), and I used to debug them this way. Post-commit are easier
to debug than pre-commit hook scripts, since while the latter requires
a SVN transaction, the former only use existing data from the SVN
repository. You can therefore run the post-commit hook scripts as many
time as you want until it makes some changes in your Trac DB ;-)

HTH,
Manu

On 7/21/06, Christophe parmentier <[EMAIL PROTECTED]> wrote:
I believe it as well !

Whatsoever, my pre-commit hook works properly but my post-commit hook does
not update the tickets at all without rising any errors...
I tried python -W to see if I could find something but nothing happened...

Any clue on how to debug the post-commit hook, had trace, etc.
Too bad for me, svn does not show stdin/stderr if everything is succesfull.

Thanks,
XTof


On 7/12/06, Matthew Good <[EMAIL PROTECTED]> wrote:
> On Wed, 2006-07-12 at 06:29 -0400, Aaron D. Marasco wrote:
> > Markus Tacker wrote:
> > > Interactivity is not possible with subversion hooks.
> > Not directly, but you could scan it with a regex of some kind and if you
> > don't see 'refs #' or 'closes #' then reject it with an error message
> > saying that you need to include a ticket ref. I can check the server at
> > work today, I know we have a script that can reject check ins if the
> > file is binary but not 'svn-needs-lock' so it would be the same one...
>
> I believe this is what the trac-pre-commit-hook does already.
>
> --
> Matthew Good <[EMAIL PROTECTED] >
>
> _______________________________________________
> Trac mailing list
> [email protected]
> http://lists.edgewall.com/mailman/listinfo/trac
>


_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac





--
Manu
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to