Ahh, the problem appeared to be in the version. I tried version 0.9 instead and now I get the output:

C:\Cepa\Repositories\cepasoft\hooks>post-commit.bat C:\Cepa\Repositories 7

C:\Cepa\Repositories\cepasoft\hooks>SET REPOS=C:\Cepa\Repositories

C:\Cepa\Repositories\cepasoft\hooks>SET REV=7

C:\Cepa\Repositories\cepasoft\hooks>SET LOG=C:\PROGRA~1\Subversion\bin\svnlook.e
xe log -r 7 C:\Cepa\Repositories

C:\Cepa\Repositories\cepasoft\hooks>SET AUTHOR=C:\PROGRA~1\Subversion\bin\svnloo
k.exe author -r 7 C:\Cepa\Repositories

C:\Cepa\Repositories\cepasoft\hooks>SET TRAC_ENV=C:\PROGRA~1\Subversion\trac.db


C:\Cepa\Repositories\cepasoft\hooks>SET TRAC_URL=http://127.0.0.1/cgi-bin/t
rac.cgi

C:\Cepa\Repositories\cepasoft\hooks>C:\Python23\python.exe C:\Python23\Scripts\t rac-post-commit-hook.py -p C:\PROGRA~1\Subversion\trac.db -r 7 -u C:\PROGRA~1\Su bversion\bin\svnlook.exe author -r 7 C:\Cepa\Repositories -m C:\PROGRA~1\Subvers
ion\bin\svnlook.exe log -r 7 C:\Cepa\Repositories -s http://127.0.0.1/cgi-b
in/trac.cgi

C:\Cepa\Repositories\cepasoft\hooks>

I assume this is what it is supposed to be. Now I try to commit a change to svn with the commit message: test fix #31 But after this the status of ticket 31 remains unchanged. Wasn't this supposed to set the status of ticket 31 to fixed (or closed)?


From: "Emmanuel Blot" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: [Trac] Problem with trac-post-commit-hook
Date: Tue, 13 Jun 2006 14:59:33 +0200

Well it IS a valid path, but since I do not know what it is supposed to be a
path to I don't know if it is correct. The folder C:\Program
Files\Subversion\trac.db contains the files VERSION and README, and 8
subfolders.

This seems ok: Trac looks for a db/trac.db files inside this
directory. Check that this file exists.
(you probably not want to store your Trac environment inside the
Subversion tool directory, but this is not related to your issue)

Did you check the file permissions ? The user that invokes the
post-commit script should have sufficient priviledges to read and
write to C:\Program Files\Subversion\trac.db\db\trac.db file

BTW, 0.8 is a very old release.

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

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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

Reply via email to