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

Re: Can you set properties on a file without having it checked out?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-05-12 19:56:11 CEST

On May 12, 2005, at 11:51 AM, Scott Simpson wrote:

> Ben Collins-Sussman wrote:
>
>
>>
>> I'm not really understanding what you're trying to do.
>>
>
> What I'm trying to do is attach "metadata" to files. That is, I
> want to attach a bug system number to a set of files so I can look
> up all the files and changes that occurred via a bug fix number.
> This is my "change request".

So in the same way I close a bugtracker issue by saying "fixed by
revision 923", you want to create a reverse link? You want revision
923 to have a note attached that says, "this commit fixed issue 1729"?

One obvious way to do that is put it in the commit log message. But
the commit log message is just an unversioned property attached the
whole revision tree, called a 'revision property'. You can read
about revision properties in the book:

    http://svnbook.red-bean.com/en/1.1/ch05.html#svn-ch-5-sect-1.2

And revision properties are tweakable with an ordinary svn client:

     svn propset --revprop -r923 MyProperty MyValue reposURL

That's how clients change commit-messages, for example (they set the
'svn:log' revision property). Your post-commit hook can do the same
thing for your own custom property.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 12 20:26:30 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.