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

Re: Setting Revision Properties before Commit

From: David Weintraub <qazwart_at_gmail.com>
Date: 2005-06-22 23:36:59 CEST

> By the way, would you like to link to this mail thread in that issue?
> That would be a help...

That's not a bad idea. Not too sure how to do that though. Do I simply
put a link to this thread in the comments of the bug?

Anyway, I've done something I haven't done in over a dozen years: plow
through the code.

It took me a while to parse the code (Hey this isn't written in Turbo
Pascal!) , but I did find a few things. The libsvn_wc doesn't have
anything in it for handling revision properties. In order for the "svn
setprop --revprop" command to be able to track and set revision
properties, the libsvn_wc must be modified. A way of storing these
properties in the .svn directory is also needed. This means that the
bindings don't work. Well, they do work, but they cannot set a
revision property before it is committed to the archive. I was
mislead.

However, the libsvn_ra library does have the ability to set revision
properties during a commit. This make sense since svn:log, svn:author,
and svn:date all are revision properties that must be set before the
commit takes place. However, from what I can tell, the libsvn_ra
library seems to gather the data for these three revision properties
itself.

The basic communication infrastructure is there, and the ability to
set revision properties during the commit process would add a lot of
value to Subversion (especially if you could easily search for those
properties). Unfortunately, it would involve changing the way data is
stored in the .svn directory, and modifying libsvn_wc and
libsvn_client to handle this issue.

Thanks for your help and pointing me to the right information

On 22 Jun 2005 14:56:38 -0500, kfogel@collab.net <kfogel@collab.net> wrote:
> David Weintraub <qazwart@gmail.com> writes:
> > > http://subversion.tigris.org/issues/show_bug.cgi?id=1976
> >
> > Thanks, I checked for "revision property", "revision properties", and
> > even just "properties". This was under "rev-props".
>
> I fixed the summary (you should feel free to do that yourself, when
> you encounter a problem like this).
>
> By the way, would you like to link to this mail thread in that issue?
> That would be a help...
>
> -Karl
>
>

-- 
--
David Weintraub
qazwart@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 22 23:55:56 2005

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.