Matthew Gillen wrote:
...
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`)

Note that the latest incarnation of the trac-post-commit-hook script (both in 0.10-stable and trunk) are now much simpler to call and less error prone w.r.t. encoding issues, based on the work of markus. The log and author information are now fetched using the Trac API, which always give correct unicode strings back, regardless of the console encoding and other vodoo considerations... so they don't need to be setup on the command line anymore.
And there's even a .cmd script for Windows ;)

-- Christian


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