ying lcs wrote:

Hi,

I am trying to get the 'trac-post-commit-hook' to work. When I 'svn
commit' I already put 'Fix #4...' in my commit message:


export TRAC_ENV=/srv/svn/tracenv

$ ~/src/trac-0.10.3/contrib/trac-post-commit-hook -u yinglcs -m 'Fix
standalone mode' -s http://localhost/tracprojects/sample -r 9 -p
/srv/svn/tracenv/sample

I don't see any error message from the command.
I have change the path, '/srv/svn/tracenv', '/srv/svn/tracenv/sample',
they are valid.
And I have hit 'http://localhost/tracprojects/sample' with my browser,
so the url is valid too.

But I don't see anything changed, from the timeline of the Trac, there
is no new activity. And when I view my tickets, it does not associate
my changes with a specified ticket.

Can you please tell me what am I missing.

Don't make up a new log message, use svnlook to extract it for you:
LOG=`svnlook log -r $REV $REPOS`
trac-post-commit-hook -u yinglcs -m $LOG -s...

(likewise with the 'author' parameter: AUTHOR=`svnlook author -r $REV $REPOS`)

Matt

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to