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

Re: Modify properties in pre-commit hook

From: Mark Phippard <MarkP_at_softlanding.com>
Date: 2004-09-24 15:04:05 CEST

"Max Bowsher" <maxb@ukf.net> wrote on 09/24/2004 04:57:44 AM:

> kfogel@collab.net wrote:
> > Ben Collins-Sussman <sussman@collab.net> writes:
> >> Of course we have APIs for changing revision props on a transaction.
> >> Can 'svnadmin' do it? Not at all, other than the 'svnadmin setlog'
> >> commmand. But do we have APIs? Of course!
> >>
> >> Just use svn_fs.h. Call svn_fs_open_txn(), followed by
> >> svn_fs_change_txn_prop(). Write a C program, or do it in Perl or
> >> Python. Whatever you want.
> >
> > Ben is quite correct, I misspoke -- we do have APIs, but we don't ship
> > with any programs that use them. (I think for Mark's purposes, that's
> > more or less equivalent to not offering the functionality, and also it
> > would still be appropriate for us to change the default hook template
> > text.)
> I disagree - we have python and perl bindings, right?
> Even if we didn't, the information in the current template is valid and
> would be useful to anyone who was capable of writing a small C program.

I think I am going to leave it as is. I originally planned to just do an
svn propset in a post-commit hook, when I was reading the pre-commit hook
the idea of adding the properties as part of the commit just sounded
appealing. It might be nice if svn propset could operate on a txn, but
certainly something I can live without. Also, as you say, I could always
write a C program.


Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 24 15:04:43 2004

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.