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

RE: Automatic replacement on commit

From: Roth, Pierre <pierre.roth_at_covidien.com>
Date: Tue, 9 Sep 2008 15:05:57 +0100

> -----Message d'origine-----
> De : John Peacock [mailto:john.peacock_at_havurah-software.org]
> Envoyé : mardi 9 septembre 2008 15:59
> À : Roth, Pierre
> Cc : Matthieu BROUILLARD; users_at_subversion.tigris.org
> Objet : Re: Automatic replacement on commit
>
> Roth, Pierre wrote:
> >> * using a post commit-hook that will fire a process that will
> >> automatically update the file and then commit it again?
> >
> > You'll probably have to use a pre-commit hook instead of a
> post-commit
> > one. Just before committing, your script will change the
> file header
> > and on success, the file (or list of files) will be commited.
>
> No, that isn't a supported model. If you change the file in
> pre-commit, then the working copy that made that commit
> contains the wrong data (i.e. what it sent is not what was
> committed) and there is no way to resolve that error.
>

Sorry for my wrong answer. I did not really understand your use case.
Apologizes...
Pierre

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-09 16:06:26 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.