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

Re: svn_wc__db_base_get_info() vs. svn_wc__db_read_info() ?

From: Greg Stein <gstein_at_gmail.com>
Date: Tue, 26 Jan 2010 20:34:40 -0500

base_get_info returns information about the BASE tree.

read_info returns information about the WORKING tree, or if a
specified node is not present in WORKING, then info from the BASE
tree.

and recall that BASE == what you checked out from the repository.
WORKING corresponds to added/removed/copied/moved nodes. For nodes in
the WORKING tree, revision will always be SVN_INVALID_REVNUM, and the
repos_relpath/root_url will be NULL.

Cheers,
-g

On Tue, Jan 26, 2010 at 19:20, Neels J Hofmeyr <neels_at_elego.de> wrote:
> How does
>
>      err = svn_wc__db_base_get_info(&status, NULL,
>                                     &revision,
>                                     &repos_relpath,
>                                     &repos_root_url,
>                                     NULL, NULL, NULL, NULL, NULL, NULL,
>                                     NULL, NULL, NULL, NULL,
>                                     eb->db,
>                                     local_abspath,
>                                     result_pool,
>                                     scratch_pool);
>
> differ from
>
>  SVN_ERR(svn_wc__db_read_info(&status, NULL,
>                               &revision,
>                               &repos_relpath,
>                               &repos_root_url,
>                               NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
>                               NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
>                               NULL, NULL, NULL,
>                               eb->db, local_abspath,
>                               result_pool, scratch_pool));
>
> ?
>
> Thanks,
> ~Neels
>
>
Received on 2010-01-27 02:35:13 CET

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.