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

Re: Why was svn_client_mergeinfo_get_merged removed?

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sun, 06 Apr 2008 11:04:32 +0200

Bert Huijben (TCG) wrote:
>> -----Original Message-----
>> From: Stefan Küng <tortoisesvn_at_gmail.com> [mailto:=?ISO-8859-
>
>> Hi,
>>
>> When I updated today, I discovered that the API
>> svn_client_mergeinfo_get_merged() got removed from the 1.5.x branch. I
>> was using this API in TSVN to mark already merged revisions in the log
>> dialog.
>>
>> Is there a reason why this was removed? And why from an .x branch? I
>> now
>> have to either find another way to get that feature back, or drop it
>> completely :(
>
> svn_error_t *
> svn_client_mergeinfo_log_merged(const char *path_or_url,
> const svn_opt_revision_t *peg_revision,
> const char *merge_source_url,
> const svn_opt_revision_t *src_peg_revision,
> svn_log_entry_receiver_t receiver,
> void *receiver_baton,
> svn_boolean_t discover_changed_paths,
> const apr_array_header_t *revprops,
> svn_client_ctx_t *ctx,
> apr_pool_t *pool);
>
> and
>
> svn_error_t *
> svn_client_mergeinfo_log_eligible(const char *path_or_url,
> const svn_opt_revision_t *peg_revision,
> const char *merge_source_url,
> const svn_opt_revision_t
> *src_peg_revision,
> svn_log_entry_receiver_t receiver,
> void *receiver_baton,
> svn_boolean_t discover_changed_paths,
> const apr_array_header_t *revprops,
> svn_client_ctx_t *ctx,
> apr_pool_t *pool);
>
> Are the replacement methods for svn_client_mergeinfo_get_merged() and
> svn_client_mergeinfo_get_available()

These may be replacements, but they work and are used completely
different. IMHO a replacement is something I can use instead of the
replaced thing without changing too much. These are not replacements,
these are alternatives.

> The log messages talk about cleaning up the api, but I see some problem in
> using the new api's over the old ones.
>
> The new ones always call svn_client_log*() to get the results, which has at
> least some and in some cases a major performance impact. (And in the case of
> your new TortoiseSVN doesn't allow re using the existing knowledge in the
> log message cache).

That's what I discovered too. Right now, I'm thinking of dropping the
feature in TSVN.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net

Received on 2008-04-06 11:04:55 CEST

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.