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

Re: can i invent arbitrary revision properties?

From: David Weintraub <qazwart_at_gmail.com>
Date: 2005-08-10 22:06:52 CEST

You can set create any revision property you want. However:

* You can only create a revision property once the revision is
created. You can't (like file properties) create a property on a
commit.

* In order to modify or create a revision property, you must define a
hook script to allow you to change those properties. This hook script
can simply be "exit 0", but that would allow anyone to change any
revision property including the log, the author, and even the date
that the revision was created. Even if you want people to be able to
freely create other revision properties, you probably want to limit
access to these three revision properties.

* There isn't any simple mechanism to find a specific revision
property (except for the svn:log, svn:date, and svn:author which are
listed via the "svn log" command).

* Like other properties, you should not start a revision property with
"svn:" since that's reserved for Subversion.

On 8/10/05, Robert P. J. Day <rpjday@mindspring.com> wrote:
>
> don't have my test box in front of me or i'd just test it. first,
> are there only the three pre-defined revision properties:
>
> svn:{log,date,author} ??
>
> and i've seen that you have to explicitly use a hook script to enable
> changing *any* revision properties. if i used a script with little
> more than "exit 0" (yes, a bad idea, i'm sure), could i set arbitrary
> revision properties? (i'm assuming i'd want to avoid inventing new
> properties with the "svn:" prefix.)
>
> rday
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

-- 
--
David Weintraub
qazwart@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 10 22:09:14 2005

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.