[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Is it possible to change content of a commit by pre-commit hook?

From: Joseph Bruni <jbruni_at_icloud.com>
Date: Tue, 19 Apr 2016 13:27:01 -0700

> On Apr 19, 2016, at 12:44 AM, thiemo.kellner_at_post.ch wrote:
> Hi all
> We export PowerCenter workflows as XML to commit those to subversion. We would like to make sure that the description attribute of the tags contain subversion information like Rev or Header. Is it possible to change the content i.e. the value of the xml description attribute by commit hook? I had a look at red bean book and search the net for hints. I only found 'svnlook cat' to echo the content of the file but I did not find a means to alter the content. Is it possible to achieve or do I need to make a check on the content and fail the commit if the required bits of information in the content is not present?
> Kind regards
> Thiemo

Have you tried using keywords?


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.
Received on 2016-04-19 22:27:14 CEST

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.