It won't work. What is needed here is pre-commit hook that can check does spesific ticket exist and abort commit if it doesn't.
Of course this would be a tricky since it's repository wide hook, not file spesific. Doable bu I'm not aware about any solutions. rupert thurner kirjoitti: > it would be possible ot have a post commit hook which tries to close a > ticket, but i am unsure if you can force it this way, maybe check > http://trac.edgewall.org/browser/trunk/contrib/trac-post-commit-hook, > or > http://www.subversionary.org/martintomes/using-a-post-commit-to-update-trac-tickets. > > > On Dec 3, 7:15 pm, "Braulio M. Horta" <[EMAIL PROTECTED]> > wrote: >> We have some safe-critical systems files in our company and we want to >> make then kind of read-only unless they are associated with a ticket. >> >> Is there a nice way we could set some files in the subversion >> repository so it would be necessary that they where listed in a >> ticket, assigned,... , and, only then, it would be possible to commit >> them. >> >> I thought about using a custom field in the ticket for listing files >> and writing a pre-commit hook script for accessing Trac's database and >> searching for each changed file(if necessary) before finishing >> transaction. >> >> How does it sound to you? >> >> Thanks a lot! >> >> Braulio M. Horta >> Embraer > > -- Jani Tiainen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
