Try replacing the infamous space characters:

use "PROGRA~1" instead of "Program Files"

HTH,
Manu

On 6/13/06, Per Rasmussen <[EMAIL PROTECTED]> wrote:
I'm trying to use trac-post-commit-hook downloaded from
http://projects.edgewall.com/trac/file/branches/0.8-stable/contrib/trac-post-commit-hook
but I can't get it to work properly.

I have made a file in C:\Cepa\Repositories\cepasoft\hooks called
post-commit.bat which contains:

SET REPOS=%1
SET REV=%2
SET LOG="C:\Program Files\Subversion\bin\svnlook.exe" log -r %REV% %REPOS%
SET AUTHOR="C:\Program Files\Subversion\bin\svnlook.exe" author -r %REV%
%REPOS%
SET TRAC_ENV="C:\Program Files\Subversion\trac.db"

C:\Python23\python.exe C:\Python23\Scripts\trac-post-commit-hook.py -p
%$TRAC_ENV% -r %$REV% -u %$AUTHOR% -m %$LOG%

When I try to run the bat file from a command prompt with the line:

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

I get the output:

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

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

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

C:\Cepa\Repositories\cepasoft\hooks>SET LOG="C:\Program
Files\Subversion\bin\svn
look.exe" log -r 7 C:\Cepa\Repositories\cepasoft

C:\Cepa\Repositories\cepasoft\hooks>SET AUTHOR="C:\Program
Files\Subversion\bin\
svnlook.exe" author -r 7 C:\Cepa\Repositories\cepasoft

C:\Cepa\Repositories\cepasoft\hooks>SET TRAC_ENV="C:\Program
Files\Subversion\tr
ac.db"

C:\Cepa\Repositories\cepasoft\hooks>C:\Python23\python.exe
C:\Python23\Scripts\t
rac-post-commit-hook.py -p  -r  -u  -m

Traceback (most recent call last):
  File "C:\Python23\Scripts\trac-post-commit-hook.py", line 166, in ?
    CommitHook()
  File "C:\Python23\Scripts\trac-post-commit-hook.py", line 119, in __init__
    self.con = sqlite.connect(os.path.join(project, 'db', 'trac.db'),
autocommit
=0)
  File "C:\Python23\Lib\site-packages\sqlite\__init__.py", line 61, in
connect
    return Connection(*args, **kwargs)
  File "C:\Python23\Lib\site-packages\sqlite\main.py", line 446, in __init__
    self.db = _sqlite.connect(database, mode)
_sqlite.DatabaseError: unable to open database file

C:\Cepa\Repositories\cepasoft\hooks>


Can somebody tell me what I am doing wrong?

Thanks in advance,
Per Rasmussen.

_________________________________________________________________
Opret en personlig blog og del dine billeder på MSN Spaces:
http://spaces.msn.com/

_______________________________________________
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