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

log message and commit_editor

From: Dirk Hoffmann <dh.discuss_at_web.de>
Date: 2004-10-12 16:12:08 CEST


I believe subversion is far more than just a replacement for CVS. At
least we are going towards using it as a part of our software production

At the moment I'm extending the javahl API with a CommitEditor class.

This will hopefully provide a means to collect changes at the client
side and send them to the server as one transaction or "edit" in the
subversion parlance.

Now there is this "message" argument to ra_lib->get_commit_editor

At different places in the source code the message is constructed by the
ctx->log_msg_func callback which is fed with the commit_items array like so:

  /* Get the commit message with whatever callback function and baton
     is provided through the context */
  SVN_ERR ((*ctx->log_msg_func) (&message, &tmp_file, commit_items,
                 ctx->log_msg_baton, pool));

Each commit_item describes a change operation probably to allow the
generation of detailed log messages.

The problem with this is that I have to know all changes before creating
the commit editor.

Maybe I didn't completely understand the source code. Then I would be
grateful if someone gave me some explanations.

 From how I understood that code a better approach would be to let the
commit callback construct the message.

Best regards

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 12 16:12:31 2004

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.