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

Re: svn_wc_adm_probe_open3 fails on windows

From: Barry Scott <barry_at_barrys-emacs.org>
Date: Fri, 4 Nov 2011 18:56:34 +0000

On 4 Nov 2011, at 11:10, Bert Huijben wrote:

>
>
>> -----Original Message-----
>> From: Barry Scott [mailto:barry_at_barrys-emacs.org]
>> Sent: vrijdag 4 november 2011 12:06
>> To: Subversion Development
>> Subject: svn_wc_adm_probe_open3 fails on windows
>>
>> I know that you have marked svn_wc_adm_probe_open3 as deprecated
>> however I assume you expect it to still work. And it does on
>> Mac OS X.
>>
>> When called like this:
>>
>> svn_error_t *error = svn_wc_adm_probe_open3( &adm_access, NULL,
>> norm_path.c_str(), false, 0, NULL, NULL, pool );
>>
>> Where norm_path is:
>>
>> B:\wc2\test\file1.txt
>
> Did you really pass this value?

That is what was returned from svn_dirent_canonicalize() that is what
I should use on paths?

I input b:\wc2\test\file1.txt and get back B:\wc2\test\file1.txt

> All Subversion api's (except for a few that explicitly document otherwise)
> assume that you pass canonical paths.
>
> The canonical path for this path is B:/wc2/test/file1.txt
>
>> I get this error:
>>
>> cmd_info: svn_wc_adm_probe_open error 02C02290
>> 'B:' is not a working copy
>
> This might be what you get when you pass B:filename, which is what you do
> when you use '\' separators.

Digging further what I am seeing is that svn_adm_probe_open3 returns an
entry if the path is a folder and returns the error if it is a file.
The same code running on Mac OS X can get a entry for folders and files.

Barry
Received on 2011-11-04 19:57:12 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.