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

How to read merge-tracking info efficiently

From: <Stefan.Fuhrmann_at_etas.de>
Date: 2007-06-24 13:05:15 CEST

Hi devs,

in TortoiseSVN, I would like to detect and evaluate
all svn:mergeinfo changes. Once I know there was
a merge for a specific path and revision, I can call
svn_client_get_mergeinfo and friends to determine
what got (un)merged where.

My problem is: There seems to be no way to find
those (path,revision) pairs except checking *every*
modified path in every revision I am interested in
(e.g. all).

A revision that actually contains a merge may easily
touch thousands of files (my personal record is
~12k files). Since a single server roundtrip takes
about 1 second over the internet, it would take hours
to fetch the information for a single, interesting revision.

In an ideal world, I would wish for an API like this:

svn_client_list_merges (apr_hash_t
                         const char *path_or_url,
                         const svn_opt_revision_t *peg_revision,
                         const svn_opt_revision_t *start,
                         const svn_opt_revision_t *stop,
                         svn_client_ctx_t *ctx,
                         apr_pool_t *pool);

Is there already a way to get that information? If not,
how could I work around this issue in 1.5.x?

Thanks in advance,
Received on Sun Jun 24 13:05:03 2007

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.