On 01 Jul 2005 13:11:13 -0500, email@example.com <firstname.lastname@example.org> wrote:
> David Weintraub <email@example.com> writes:
> > Right now, I'm having fun with revision properties. I originally wrote
> > a hook script to help verify that certain revision properties were set
> > on the commit and were formatted correctly. Unfortunately, it wasn't
> > until after I finished my hook script that I realized you can't set
> > revision properties on a commit transaction. (There's defect 1976
> > against this, but no one is currently working on it).
> Yeah. You can still do it, of course, but you'd have to write a
> program against the svn libraries, or via the bindings, which is
> harder than having a command to do it.
Can't do it in the bindings. Already tried. In fact, there is nothing
in the client library about setting the revision properties and
there's no place where it can be stored.
There is one spot in the commit command where revision bindings are
being stored, but it is only for the svn:log, svn:date, and svn:author
The easiest place to set the revision bindings would be rewriting the
commit transaction to accept more command line parameters where
revprops could be set.
Hmmm. It might be possible via the bindings to set revision properties
*AFTER* the commit was completed since I could easily find the
revision number at that point. Then use the bindings to set the
> > There is also a need to have a way of listing revision properties --
> > maybe through a command line switch in the "svn log" command. After
> > all, "svn log" already lists the revision properties svn:log,
> > svn:date, and svn:author.
> 'svn proplist --revprop -rXXX ...'
Except that I can't easily search for a particular revision property
value like I can search to see a particular svn:log entry or all the
revisions committed by a particular user. It would be nice to be able
to search all revisions where a particular defect was fixed without
having to query all revisions. I may have to execute "svn proplist
-revprop" thousands of times.
In fact, querying properties in general is hard in Subversion since
you can't get that information with a single command. It would be so
nice to be able to get all properties and revision properties via the
svn log command since that's a pretty fast command.
To unsubscribe, e-mail: firstname.lastname@example.org
For additional commands, e-mail: email@example.com
Received on Mon Jul 4 01:20:18 2005