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

Re: [WIP] Use repos_root_url and repos_relpath in the status code.

From: Greg Stein <gstein_at_gmail.com>
Date: Wed, 19 May 2010 08:40:03 -0400

On Wed, May 19, 2010 at 05:37, Bert Huijben <bert_at_qqmail.nl> wrote:
>...
>> +          abs_path = svn_uri_join(parent_url + strlen(wb->repos_root),
>> +                                  svn_dirent_basename(local_abspath,
> NULL),
>> +                                  pool);
>
> And this has the same issues with encoding. (And I don't know what you are
> calculating here. It doesn't look like an absolute dirent. Please use a
> different variable name).

That is the 'abs_path' grammar token from the URI specification.

>...
>> @@ -2585,6 +2685,14 @@ svn_wc_dup_status3(const svn_wc_status3_t *orig_st
>>      new_stat->changelist
>>        = apr_pstrdup(pool, orig_stat->changelist);
>>
>> +  if (orig_stat->repos_root_url)
>> +    new_stat->repos_root_url
>> +      = apr_pstrdup(pool, orig_stat->repos_root_url);
>> +
>> +  if (orig_stat->repos_relpath)
>> +    new_stat->repos_relpath
>> +      = apr_pstrdup(pool, orig_stat->repos_relpath);
>> +
>
> Do you have to duplicate these values, or is the lifetime of these orig_stat
> values long enough?
> (I think you can just set the value from the parent, but I didn't check)

This is in dup() ... you *have* to duplicate these values. ??

Cheers,
-g
Received on 2010-05-19 14:40:35 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.