How do I set the log level to debug?

See trac.ini in <project>/conf

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-bin/trac.cgi

Wait a minute, I just think this probably cannot work on Windows as-is!

Windows shell interpreter does not understand the backquote syntax
(e.g. `svnlook author`), so you simply cannot use this syntax from a
.BAT or from the command line.

There are three solutions (at least) to this issue. You either need to:
1. fix up the syntax to provide the "backquote feature" w/ Windows
2. use a "real" shell such as bash (Cygwin, ...) to invoke the Python script
3. use a pure python based script to provide the information such as
the author without the Subversion command tool (svnlook ...)

1. I consider it as a nightmare: writing .BAT files, but there is a
backquote equivalent syntax for Windows 2000/XP. I remember it is
based on the "FOR ..." command. You may want to find some info from
here: http://www.ss64.com/nt/for_cmd.html
 To sum up, `command option` means that the output of "command" is
used in-place as an option for the trac-post-commit-hook.py script
2. This seems quite a heavy installation to run a simple script ;-)
3. You need to know Python to tweak the script

3': I did get rid of the svnlook command in my own scripts (you can
retrieve the equivalent information through the Python SVN wrapper
instead of spawning a svnlook process). Please let me know if you are
interested in such scripts.

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

Reply via email to