Fix & cleanup for .bat and .com for commit hook launch on Windows
|Reported by:||Owned by:||Christian Boos|
The .bat files and .com files given in #897 to launch commit hook scripts do not work because the command to open the database connection in the python scripts expects the environment directory (not the trac.db file). The basic change to these windows files is as follows:
REM SET TRAC_ENV="%TRACDB_DIR%\db\trac.db" SET TRAC_ENV="%TRACDB_DIR%"
…though I have also re-arranged these slightly to make it easier to see what settings needs to be altered when these are added to a given project — the settings are now at the top of the file, and are just the environment (the rest of the path is added later).
NOTE: the .bat files need to be used with the python hook scripts from #897, due to the way info is passed (via a file). The .com scripts work with the standard python hook scripts available at branches/0.8-stable/contrib/
Change History (45)
comment:2 by , 14 years ago
|Keywords:||contrib added; script removed|
|Priority:||normal → high|
|Severity:||normal → enhancement|
|Version:||0.8.1 → devel|