Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

Issues with post commit hook.

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


alexandru.bumbacea at eestec

Oct 6, 2009, 5:46 PM

Post #1 of 2 (310 views)
Permalink
Issues with post commit hook.

Hello,

I have setup trac 0.11.5 with svn 1.6.5 and setup a hook on post-
commit for one of the repository.

The post-commit.cmd looks like bellow:

SET projectname=projectTest
SET TRAC_ENV=G:\trac\%projectname%
SET REPO_ENV=G:\Repository\%projectname%
SET REV=%2
C:\Python25\python.exe "%REPO_ENV%\hooks\trac-post-commit-hook.py" -p
"%TRAC_ENV%" -r "%REV%"

The py file is the one from here: http://trac.edgewall.org/browser/trunk/contrib/trac-post-commit-hook


All the past are correct and if i run the cmd like this:

post-commit.cmd %REPO_ENV% 51

it add a comment on ticket #1(the comment from the rev 51 was "re
#1").
But if i commit some code to the svn i get:
Commit failed (details follow):
MERGE of '/svn/projectTest/trunk/webservices': 200 OK (https://sec_ip)


I would apreciate if you could help me on this as i have no idea and i
haven;t found any fixes for this on the G.
Thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


alexandru.bumbacea at eestec

Oct 6, 2009, 6:34 PM

Post #2 of 2 (274 views)
Permalink
Re: Issues with post commit hook. [In reply to]

Hello,

After some testing i discovered that my svn server was running under
network services user account, that havn't had the necessary
permissions. After i changed the svn server to run under LocalMachine
commit is working fine.

Hope this will help some else.

Alexandru Bumbacea wrote:
> Hello,
>
> I have setup trac 0.11.5 with svn 1.6.5 and setup a hook on post-
> commit for one of the repository.
>
> The post-commit.cmd looks like bellow:
>
> SET projectname=projectTest
> SET TRAC_ENV=G:\trac\%projectname%
> SET REPO_ENV=G:\Repository\%projectname%
> SET REV=%2
> C:\Python25\python.exe "%REPO_ENV%\hooks\trac-post-commit-hook.py" -p
> "%TRAC_ENV%" -r "%REV%"
>
> The py file is the one from here: http://trac.edgewall.org/browser/trunk/contrib/trac-post-commit-hook
>
>
> All the past are correct and if i run the cmd like this:
>
> post-commit.cmd %REPO_ENV% 51
>
> it add a comment on ticket #1(the comment from the rev 51 was "re
> #1").
> But if i commit some code to the svn i get:
> Commit failed (details follow):
> MERGE of '/svn/projectTest/trunk/webservices': 200 OK (https://sec_ip)
>
>
> I would apreciate if you could help me on this as i have no idea and i
> haven;t found any fixes for this on the G.
> Thanks!
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.