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

Re: correct API to get current textual WC modifications, for parsing postprocessing

From: Branko Čibej <brane_at_apache.org>
Date: Tue, 1 Oct 2019 05:25:26 +0200

On 30.09.2019 22:20, Jens Frederich wrote:
> I try to get all line changes in the current changeset. Not sure what
> the right API is.  I have created a delta tree with the following to
> see if it is a file and textual modifications. How do I get the content?
>
>   SVN_ERR(svn_fs_revision_root(&base_root, fs, base_rev, pool));
>   SVN_ERR(svn_repos_node_editor(&editor, &edit_baton, repos,
> base_root, root, pool, edit_pool)));
>   SVN_ERR(svn_repos_replay2(root, "", SVN_INVALID_REVNUM, TRUE,
> editor, edit_baton, NULL, NULL, edit_pool));
>   *tree = svn_repos_node_from_baton(edit_baton);

You should be looking at the svn_client API, specifically, one of the
svn_client_diff variants. The functions you mentioned above are reading
data from the repository, not from the working copy.

-- Brane
Received on 2019-10-01 05:25:34 CEST

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