On Thu, Jan 7, 2010 at 3:44 PM, Lynda Li <[email protected]> wrote:
> Thank you! Sorry I deleted previous post since I found out that I used
> pre-commit-hook for post commit and some questiosn are resolved.
> I don't think any white spaces in my path. I installed trac 2 weeks ago, and
> was not sure about where is my trac_path and trac_env, I am think the
> variables I set in trac-post-commit-hook.cmd might be wrong.
> Here are some trac information of my installation and foollowed instruction
> on
>
[...]
>
> I am sorry I don't know how to resolve the white space or DB AFAICr issue. I
> did n;t see any space in my path.  Here is my trac-post-command-hook.cmd,
> can you help me if some path I set is wrong?
>

You don't need to considering the info above ... well, it was above ;o)

> @ECHO OFF
> SET TRAC_ENV=C:\trac
> :: -- set if Python is not in the system path

ok

> SET PYTHON_PATH=C:\Python26
> :: -- set to the folder containing trac/ if installed in a non-standard
> location

ok

> :: I don't know what should put here, I tried C:\trac
> SET TRAC_PATH=

I suppose that the path to folder containing the hook script

> IF NOT EXIST %TRAC_ENV% GOTO :EOF
> set PATH=%PYTHON_PATH%;%PATH%
> set PYTHONPATH=%TRAC_PATH%;%PYTHONPATH%
>
> IF NOT EXIST %TRAC_ENV% GOTO :EOF
> set PATH=%PYTHON_PATH%;%PATH%
> set PYTHONPATH=%TRAC_PATH%;%PYTHONPATH%

seems 2b ok

> SET REV=%2
> Python "%~dp0\trac-post-commit-hook" -p "%TRAC_ENV%" -r "%REV%" 2>&1
> 1>>c:/temp/trachook.log
>

I don't get this ... did you try to run this `.bat` file or used the
script directly ?

> Thank you very much! I really appriecte your kind help.

:o)

-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:
TracRpc: Removed call to `rpc_match` inside `rpc_info`. + docs ;o)  -
http://bitbucket.org/osimons/trac-rpc-mq/changeset/f7fd46580552/
-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.


Reply via email to