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

Re: hooks and env

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2005-02-26 08:08:08 CET

Chia-liang Kao <clkao@clkao.org> writes:

> On Sat, Feb 26, 2005 at 12:39:48AM -0600, C. Michael Pilato wrote:
> > > What can I do to implement what I want in the hook?
> >
> > Does SVK not set any transaction properties that are distinguishable
> > from a well-behaved-yet-non-SVK client? If so, perhaps just teach
> > your hook to look for those transaction properties. If not, perhaps
> > teach SVN to set such a property, and teach to the pre-commit hook to
> > check for it, and then remove it.
>
> This brings up another missing API long in mind. Most of the commits
> svk or svn::mirror performs are with repos commit_editor eventually in
> the last layer. But there's no way to access the txn object, and thus
> no way to set revprop with txnprop until the committed callback.

Interesting. Perhaps svn_repos_get_commit_editor() should do the txn
creation (instead of delaying until editor->open_root() is called),
return to the caller the editor, edit_baton, *and* the txn associated
with the edit.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Feb 26 08:11:01 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.