Re: Pre commit hook script help needed
From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Mon, 12 Dec 2011 14:52:47 -0600
On Dec 12, 2011, at 05:19, Amitakhya Phukan wrote:
> I have this issue with me. I have a SVN structure foo like this :
If you're using something like bash to write your post-commit hook script, you'll be running "svnlook changed" to see what files were changed by the revision, and then for each one, you'll be doing your check. In between those steps (getting the list of files, and checking them), filter out the ones you don't want to check (those in Docs). For example using "grep -v /Docs/". Alternately, discard everything *except* the paths you want to check, e.g. Bar: "grep /Bar/".
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.