[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: Neels J Hofmeyr <neels_at_elego.de>
Date: Thu, 28 Jan 2010 00:15:59 +0100

Neels J Hofmeyr wrote:
> So when read_info returns a non-"empty" revision, repos_relpath or root_url,
> then these values have definitely come from the BASE tree?

I see in the code that that's not the case.
So the two calls are only identical when there is no WORKING node for that path.

nm / sorry for bothering again

heh, I tried grokking the comments when the implementation says it all :)
~Neels

> Does that mean the two calls that only ask status, revision, repos_relpath
> and root_url, passing NULL for all other return-parameters, are in fact
> perfectly identical?
>
>> 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);
>
>> 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-28 00:16:39 CET

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