Yep, thats the basic idea. Just check what the string from the first '/' 
to the second '/' is. For learning Python I highly recommend 
www.diveintopython.org (or the dead tree version if you are so inclined).

--Noah

Ruslan Sivak wrote:
> Thank you.  How would I set up the post-commit hook?  My python skills 
> are non-existant.  Basically I would need to check the commit and see if 
> it updated stuff in /project1 and if so, then run the trac-post-commit 
> passing in proj1 as the environment.  If it updated stuff in proj2, I 
> would pass the proj2 trac environment.  Can someone help me out here?  
> Speaking of which, are there any good books to learn python? 
> 
> Russ
> 
> Noah Kantrowitz wrote:
>> Trac can handle it just fine ("/path/to/repo/project[12]"), but hte 
>> post-commit script would need some patching I think.
>>
>> --Noah
>>
>> Ruslan Sivak wrote:
>>   
>>> Lets say i have an svn repo structure as follows:
>>>
>>> /
>>>  project1
>>>     branches
>>>     tags
>>>     trunk
>>>  project2
>>>     branches
>>>     tags
>>>     trunk
>>>
>>> Can I set up 2 separate trac environments, each pointing to the specific 
>>> project?  Would I still be able to use the trac-post-commit hook?
>>>
>>> Russ
>>>
>>>     
>>
>>>   
> 
> 
> > 


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to