Re: revprop changes and hooks

2010-06-24 Thread Daniel Shahaf
C. Michael Pilato wrote on Fri, 18 Jun 2010 at 22:02 -: > Daniel Shahaf wrote: > > You mean, to extend the dav_db structure to hold that information? If > > that's possible, I suppose the only candidate for filling in that > > information is db_open(), who can examine its dav_resource object.

RE: revprop changes and hooks

2010-06-22 Thread Jon Foster
Hi, Daniel Shahaf wrote: > But I wonder if, while here, we could go further and obtain > the "expected old property value" from the RA layer (and > pass it to the pre-hook). (This probably means revving > svn_ra_change_rev_prop() the same way svn_fs_change_rev_prop() > was revved.) That will all

Re: revprop changes and hooks

2010-06-18 Thread C. Michael Pilato
Daniel Shahaf wrote: > C. Michael Pilato wrote on Fri, 18 Jun 2010 at 09:48 -0400: >> Does mod_dav open and close the DAV properties database exactly once >> per PROPPATCH? > > Yes. (I checked dav_method_proppatch() in .) Why is > this important to know? Well, if it opened the props database on

Re: revprop changes and hooks

2010-06-18 Thread Daniel Shahaf
C. Michael Pilato wrote on Fri, 18 Jun 2010 at 09:48 -0400: > Daniel Shahaf wrote: > > * ra_dav: I don't know about this one. > > > > From the neon/serf side, adding the optional "expected preexisting > > value" should be straightforward (just another tag/attribute). > > > > From the mo

Re: revprop changes and hooks

2010-06-18 Thread C. Michael Pilato
Daniel Shahaf wrote: > * ra_dav: I don't know about this one. > > From the neon/serf side, adding the optional "expected preexisting > value" should be straightforward (just another tag/attribute). > > From the mod_dav_svn side, however, the propchanges/propdeletes come > from db_stor

Re: revprop changes and hooks

2010-06-17 Thread Daniel Shahaf
[ summary: a question about the ra_dav protocol ] Daniel Shahaf wrote on Thu, 17 Jun 2010 at 16:21 +0300: > Philip Martin wrote on Thu, 17 Jun 2010 at 12:18 -: > > Daniel Shahaf writes: > > > But I wonder if, while here, we could go further and obtain the > > > "expected old property value" f

Re: revprop changes and hooks

2010-06-17 Thread Daniel Shahaf
Philip Martin wrote on Thu, 17 Jun 2010 at 12:18 -: > Daniel Shahaf writes: > > > Philip Martin wrote on Tue, 15 Jun 2010 at 11:16 -: > > > >> Then the repos layer can loop (in practice only if the > >> use_pre_revprop_change_hook flag is set): > >> > >>do > >> svn_fs_re

Re: revprop changes and hooks

2010-06-17 Thread Philip Martin
Daniel Shahaf writes: > Philip Martin wrote on Tue, 15 Jun 2010 at 11:16 -: > >> Then the repos layer can loop (in practice only if the >> use_pre_revprop_change_hook flag is set): >> >>do >> svn_fs_revision_prop(¤t_value) >> action = ... >> svn_repos__hook

Re: revprop changes and hooks

2010-06-16 Thread Daniel Shahaf
Philip Martin wrote on Tue, 15 Jun 2010 at 11:16 -: > Philip Martin writes: > > > Multiple clients. It arises from my idea to solve issue 3546 > > > > http://subversion.tigris.org/issues/show_bug.cgi?id=3546 > > > > In svn_repos_fs_change_rev_prop3 the code first gets the old property > > va

Re: revprop changes and hooks

2010-06-16 Thread C. Michael Pilato
Philip Martin wrote: > Philip Martin writes: > >> Multiple clients. It arises from my idea to solve issue 3546 >> >> http://subversion.tigris.org/issues/show_bug.cgi?id=3546 >> >> In svn_repos_fs_change_rev_prop3 the code first gets the old property >> value which it uses to calculate the action

Re: revprop changes and hooks

2010-06-15 Thread Daniel Shahaf
Daniel Shahaf wrote on Wed, 16 Jun 2010 at 01:19 -: > Philip Martin wrote on Tue, 15 Jun 2010 at 11:16 -: > > Philip Martin writes: > > > Putting the get, pre hook and set into a transaction would allow the > > > action in the hook to accurately reflect the change made (or not made > > > i

Re: revprop changes and hooks

2010-06-15 Thread Daniel Shahaf
Philip Martin wrote on Tue, 15 Jun 2010 at 11:16 -: > Philip Martin writes: > > Putting the get, pre hook and set into a transaction would allow the > > action in the hook to accurately reflect the change made (or not made > > if the transaction fails). > > We don't need a new transaction to

Re: revprop changes and hooks

2010-06-15 Thread Philip Martin
Philip Martin writes: > Multiple clients. It arises from my idea to solve issue 3546 > > http://subversion.tigris.org/issues/show_bug.cgi?id=3546 > > In svn_repos_fs_change_rev_prop3 the code first gets the old property > value which it uses to calculate the action: 'A', 'M' or 'D'. Then it > pa

Re: revprop changes and hooks

2010-06-09 Thread Philip Martin
Peter Samuelson writes: > pre-revprop-change is mainly useful for access control, That's because it's not reliable and so can't be used for much else. If it was reliable it could be used for more, such as solving issue 3546. post-revprop-change also gets the same unreliable value. -- Philip

Re: revprop changes and hooks

2010-06-09 Thread Peter Samuelson
[Philip Martin] > In svn_repos_fs_change_rev_prop3 the code first gets the old property > value which it uses to calculate the action: 'A', 'M' or 'D'. Then it > passes the action to the pre-revprop-change hook, then it changes the > property and finally it runs the post-revprop-change hook. Some

Re: revprop changes and hooks

2010-06-08 Thread Philip Martin
"C. Michael Pilato" writes: > Philip Martin wrote: >> Revision properties are unversioned that's well documented. There are >> two hooks associated with a revprop change, the pre-revprop-change and >> the post-revprop-change. What's not well documented is that these >> hooks and the change are

Re: revprop changes and hooks

2010-06-08 Thread C. Michael Pilato
Philip Martin wrote: > Revision properties are unversioned that's well documented. There are > two hooks associated with a revprop change, the pre-revprop-change and > the post-revprop-change. What's not well documented is that these > hooks and the change are not executed within a Subversion tra