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

Returning commit info from libsvn_client via a callback

From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: Thu, 15 Jul 2010 17:50:38 +0100

I've started looking at issue 1199, the ability to delete urls from
multiple repositories using one command line invocation. This led me
to the following thought:

In the client API, any function which generates a commit returns a
single svn_commit_info_t as an output parameter. One of the problems
for issue 1199 is that we don't have a way to notify of the several
commits which might be generated by such usage. To correct this, I'm
contemplating adding a callback to return the commit info from
svn_client_delete3(). More generally, we may eventually have other
client APIs which generate multiple commits in a single invocation,
commit descending into externals, for instance. This makes me want to
lean toward a standard solution.

As a result, I'd like propose a callback (possibly part of the client
context) which is used to handle commit info that gets returned. This
would result in churn to a number of client APIs, but would allow for
their future extensibility, and consistency across the 1.7 (or future)
libsvn_client API set. We've got other priorities now, but I'm
interested in the general reaction to this approach.

Received on 2010-07-15 18:52:08 CEST

This is an archived mail posted to the Subversion Dev mailing list.