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

Modify files in start-commit

From: Bailey, Darragh <dbailey_at_hp.com>
Date: Wed, 24 Feb 2010 11:34:29 +0000

Is it possible to modify files in a start-commit hook and include them with a commit?

We have multiple components here in the same svn tree, and we'd like to bump a release number on each one as commits occur. Rather than trying to add code to check how many commits have been made to the area at build time, I'm considering whether it would be possible to have a hook script edit a VERSION file under the affected commponent area, incrementing a number in there by 1 and including that file in the commit.

Is that actually possible, or would I instead have to force the developers to aways modify the file VERSION and check for it's present in the transaction?

Darragh Bailey
Systems Software Engineer
Hewlett Packard Galway Ltd.
Postal Address:    Hewlett Packard Galway Limited, Ballybrit Business Park, Galway
Registered Office: Hewlett Packard Galway Limited, 63-74 Sir John Rogerson's Quay Dublin 2
Registered Number: 361933 
Received on 2010-02-24 12:37:00 CET

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.