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

Re: Modify files in start-commit

From: Erik Andersson <kirean_at_gmail.com>
Date: Wed, 24 Feb 2010 13:55:43 +0100

Hi

Not sure I really understand the problem, but how about creating a
tag(version) in post-commit?

/component/trunk -> /component/version/build<rev>

Cheers / Erik

On Wed, Feb 24, 2010 at 12:34 PM, Bailey, Darragh <dbailey_at_hp.com> wrote:

>
> 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: 361933
>
>
Received on 2010-02-24 13:56:18 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.