On Thu, Apr 8, 2010 at 2:08 PM, Noah Kantrowitz <[email protected]> wrote:
>> -----Original Message-----
>> From: [email protected] [mailto:[email protected]]
>> On Behalf Of marc.swingler
>> Sent: Thursday, April 08, 2010 9:01 AM
>> To: Trac Users
>> Subject: [Trac] 2 Trac Servers, 1 SVN Server... Hook Script Madness
>>
>> I have SVN setup with the post-commit hook script from Trac (as well
>> as to my Hudson servers). Works beautifully. But today someone pointed
>> out that some of our tickets are getting comments from developers
>> working on unrelated projects. Turns out another team points to my SVN
>> server for code shared with mine. So when they go and commit changes
>> to our SVN server and specify a ticket# meant for their Trac instance
>> in the comment, it goes to the my Trac server, not theirs. I can huff
>> and puff all day about the fact that the devs on this other team
>> shouldn't do that, but the fact is they do. Does anyone know of a
>> modified post-commit hook script that could specify which Trac server
>> to send the ticket update to?
>
> You would need to either come up with new syntax, or make something that
> checks what path the commit is touching. Either should be pretty easy if you
> read the code of the hook script.
>

I suppose you'll have more chances considering another approach :
Filter in your hook the changesets performed by members of the other
team (and, if needed, viceversa ;o) so that your Trac be immune to
external noise

;o)

-- 
Regards,

Olemis.

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

Featured article:
On adding Hessian (RPC) support for Trac -
http://feedproxy.google.com/~r/simelo-en/~3/Vit6dRudChU/on-adding-hessian-rpc-support-for-trac.html

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