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

Re: Dropping Subversion

From: Karl Heinz Marbaise <khmarbaise_at_gmx.de>
Date: Tue, 27 Jan 2009 18:33:51 +0100

Hi there,

> You are right, properties would be just the thing. To my knowledge though, properties are available only
> - either for ALL files of ONE revision (versioned properties)
That's wrong. You can set a single property to a single file and of
course different properties to different files. May be you mistaken the
file properties and directory properties (like svn:ignore)...

File1.txt my:property1, my:property2
File2.txt my:property9
File3.txt my:property200, my:property7
...

> - or for ONE file in ALL revisions (unversioned properties)
These are called version properties like the commit message and author
of a commit...but you can add as many as you like...but they are not
associated with a particular file. They are associated with the
Subversion revision....
So you can't set a property for a file in all revisions...

> What I would need is a property I can set on a file basis and which is valid for only one revision, say
> foo.c rev. 44 - PEER_REVIEWED_OK
> foo.h rev. 42 - PEER_REVIEWED_NOK
> foo.h rev. 43 - PEER_REVIEWED_OK
A property is an versioned item as well as the contents of the file
itself...and it's more or less not limited to a particular size....

So if you set the property in revision 42 to NOK and change that in
Revision 43 to "OK" and let it unchanged in 44 you have exactly what you
mentioned....

The history of a versioned property is recorded as well as the contents
of a file....

So the next step will be to create a script/programm to verify for a
particular version (or better tag or branch) if all files have the
property set to a correct value e.g. "PEER_REVIEWED_OK". This might a
process for an integration/build server etc. as preparation for release
or as a simple check...

This can be done with Java, Perl or Ruby if you like...

Kind regards
Karl Heinz Marbaise

-- 
SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise        ICQ#: 135949029
Hauptstrasse 177                         USt.IdNr: DE191347579
52146 Würselen                           http://www.soebes.de
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1059654
Received on 2009-01-27 18:34:44 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.