Anyone? Buehler?   Is there any way to get a log out of these hooks?

Also, I'm not sure I configured the trac-post-commit-hook.0.10.3.cmd
file correctly. I'm unfamiliar with the parameter setting syntax.
Here's that file :

@ECHO OFF

SET REV=%2
SET REPNAME=%~nx1

:: Modify paths and port number here
SET TRAC_ENV=C:\projects\trac\myProj
SET TRAC_URL=http:localhost:80/trac/myProj
SET PYTHON="C:\Python24\python.exe"


:: Do not execute hook if trac environment does not exist
IF NOT EXIST %TRAC_ENV% GOTO :EOF

%PYTHON% "%~dp0\trac-post-commit-hook.py" -p "%TRAC_ENV%" -r "%REV%" -
s "%TRAC_URL%"

I wasn't sure about the syntax for setting the REPNAME (The %~ I don't
know), so I just hardcoded the values in the other SET TRAC_ENV and
TRAC_URL.

On Aug 8, 5:23 pm, BrianP <[EMAIL PROTECTED]> wrote:
> followup...I found the little note on the TracPlugins page that
> mentions the setEnv PYTHON_EGG_CACHE in your <Location> in the Apache
> config file.  I did that as well, restarted Apache, committed another
> change, and the change notes are still not on the ticket.
>
> However, I'm not sure how to determine if the Apache user has write
> access to the dir I pointed the PYTHON_EGG_CACHE to.  Another thread
> here almost made it sound like the directory doesn't matter.  I'm also
> not sure if I'm specifying the directory correctly, using relative
> paths.  For example, here's my <Location> from the httpd.conf file :
>
> <Location /trac/myProj>
>   SetHandler mod_python
>   PythonHandler trac.web.modpython_frontend
>   PythonOption TracEnv C:/projects/trac/myProj
>   PythonOption TracUriRoot /trac/myProj
>   PythonDebug On
>   SetEnv PYTHON_EGG_CACHE /trac/myProj/eggCache
> </Location>
>
> Any suggestions?
>
> Thanks
>
> On Aug 8, 2:21 pm, BrianP <[EMAIL PROTECTED]> wrote:
>
> > I'm trying to get the commit comments into the Trac ticket.  I've read
> > this similar thread
>
> >http://groups.google.com/group/trac-users/browse_thread/thread/d969b7...
>
> > but that poster is on Unix and I'm on windows, and much of the
> > discussion is about unix permissions.
>
> > I'm running Trac 0.10.4 and svn 1.4.4 on WindowsXP.  I know nothing of
> > Python until installing and administering Trac with this latest
> > effort.
>
> > I've installed the trac-post-commit-hook.0.10.3.cmd and .py into my
> > svnRepository/hooks directory.  I edited the .cmd file with my Trac
> > env settings.  Then I tried commiting a change to see if the comments
> > showed up in the Trac ticket.  They did not.  Did I need to restart
> > anything?
>
> > The other thread mentioned making the scripts executable by Apache.  I
> > assumed that was only for Unix.  Was that wrong?  Do I have to somehow
> > make it executable by Apache in windows?
>
> > Thanks


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