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

Re: Altering log message in Python before closing editor?

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-06-14 17:39:57 CEST

On 6/14/06, Gregory (Grisha) Trubetskoy <grisha@apache.org> wrote:
>
> Something that I am looking at right now is using ra for talking to SVN
> remotely and without having a working copy. The SVN version I'm using now
> is trunk as of about a week ago.
>
> It looks like to get an editor, you have to
> call ra.svn_ra_get_commit_editor2(), the second argument to which is the
> log message.
>
> In a scenario where someone gets an editor not exactly knowing ahead of
> time what will be done, does a bunch of stuff, then closes the editor
> thereby committing the transaction - is there some way to alter the log
> message just before closing the editor?

I don't believe there is. Currently the underlying C code just takes
the log message as an argument, and I can't find any way to reset it
later. So to do that would require changes to the underlying C code.
I haven't looked too in depth about how the log message is used (if
it's sent up to the server early in the process or late in the process
or what), so it may be more complex than just adding a new "set commit
log" function or making the commit editor retrieve it via a callback
or something...

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 14 18:28:45 2006

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.