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

Re: SVN properties keywords

From: Vincent Lefevre <vincent+svn_at_vinc17.org>
Date: Sun, 18 Jan 2009 02:17:38 +0100

On 2009-01-15 03:19:31 +0100, Torsten Giebl wrote:
> I would like to have a svn:keywordseverytime for example.
> Every file that has this property set, will always be updated
> when there is a change in the repository, even when the file itself
> is not changed. So for example an $Id$ or
> $Revision$ in it, will always be up to date. I would call it then
> not $Revision$, but something like $BiggestRevision$ or so.

Instead of that, how about using a wrapper that stores the new
revision number in some given file and a pre-commit hook that
checks that this file contains the correct revision?

You can get the new revision number after a "svn up". There's a
race condition, but the pre-commit hook will check the number,
so that this method is safe.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
Received on 2009-01-18 02:18:33 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.