RE: stalling commits until approval
From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Tue, 26 Jan 2010 17:58:11 -0500
> > I thought I had made a suggestion on how you could create an approval
Basically, my suggestion was to have a pre-commit hook that rejects any of these approval required files unless an approval code was submitted in the commit message. If there is not a valid approval code the script would generate a code and store it in a file on the local server. It would email that code with the commit attached to the approval manager/person. The approval person would look at it... and if it looked ok they could forward the approval code back to the dev that made the change. The dev would repeat the commit including the approval code in the commit message. This time, the pre-commit hook would see the approval message, verify it against the stored code it generated, delete the cached approval code and allow the commit.
So, the flow would be something like... (psuedo code)
Hope that helps.
This is an archived mail posted to the Subversion Users mailing list.