RE: Is it possible to change content of a commit by pre-commit hook?
From: <thiemo.kellner_at_post.ch>
Date: Wed, 20 Apr 2016 05:51:01 +0000
Thanks for your thoughts. I am already aware of the possibility of check and reject though checking the presence of the appropriate property evaded me so far.
I quite feel it might contradict the purpose of a versioning system if that system would allow changes within it and not just store in certain way what was handed over to it.
-----Original Message-----
> On Apr 19, 2016, at 12:44 AM, thiemo.kellner_at_post.ch wrote:
Have you tried using keywords?
http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.keywords.html
You might be able to use a pre-commit hook to verify that the keywords are present and that the svn:keywords property is set on the file -- not the modify the content but to reject the commit if they are missing.
|
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.