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?
-- Regards, 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: 361933Received on 2010-02-24 12:37:00 CET
This is an archived mail posted to the Subversion Users mailing list.