Ticket #1602 (closed enhancement: fixed)
Fix & cleanup for .bat and .com for commit hook launch on Windows
| Reported by: | coreywangler@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | low | Milestone: | 0.10.4 |
| Component: | general | Version: | 0.10.2 |
| Severity: | normal | Keywords: | contrib windows |
| Cc: |
Description
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/


