Re: hook scripts: only commit if locked
From: si <sshnug.si_at_gmail.com>
Date: 2005-11-03 13:09:56 CET
> What I really want, is the ability to enforce the following rule:
Sure, the pre-commit hook combined with calls to svnlook.
http://svnbook.red-bean.com/nightly/en/svn.reposadmin.create.html#svn.reposadmin.create.hooks
First thing i'd do is see if the svn:needs-lock property is set on
If you do find svn:needs-lock, find the transaction author:
Then iterate through each file in the transction (in case they have
On each file you call 'svnlook propget [repos] svn:needs-lock [path/to/file]',
Hmmm...that seems a fairly heavy-handed approach, but i'm unsure how
Personally i'd probably just use locks as per normal, and try to educate
peace
---------------------------------------------------------------------
|
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.