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

Re: svn_client_revert2 skips files for no obvious reasons

From: Stefan Sperling <stsp_at_elego.de>
Date: Mon, 5 Dec 2011 16:39:47 +0100

On Mon, Dec 05, 2011 at 04:23:10PM +0100, Roman Kellner wrote:
> > What paths are you actually passing in the 'paths' array?
>
> D:\NewFolder\iec61131\ProjectName\SCC\@POE_at_OriginalFilename.ZIP
> D:\NewFolder\iec61131\ProjectName\SCC\@POE_at_OriginalFilenameRENAMED.ZIP
>
> >
> > Are you passing absolute paths?
>
> Yes.
>
> > Are you canonicalising the paths properly?
>
> We are not doing extra things to the paths, but I would guess that the path
> as above already is canonicalized. Wrong?

The paths are not canonical. Subversion always uses forward slashes
internally. Run the paths through svn_dirent_internal_style() and it
should work. This function will replace backslashes with forward slashes
and also canonicalise the paths.
Received on 2011-12-05 16:40:25 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.