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

Re: [RFC] Paths API (svn_dirent_uri.h) - improvements

From: Roman Donchenko <DXDragon_at_yandex.ru>
Date: Wed, 11 Nov 2009 23:58:59 +0300

Stefan Sperling <stsp_at_elego.de> писал в своём письме Wed, 11 Nov 2009
20:02:01 +0300:

> On Wed, Nov 11, 2009 at 05:46:21PM +0100, Branko Cibej wrote:
>> Julian Foad wrote:
>> > Stefan Sperling wrote:
>> >
>> >> Yes, but there's no function that deals with the case where you get
>> >> a Windows path on unix and need to normalise it to internal style.
>> >>
>> >> I don't know if dirent_uri should provide that. But I had to cook
>> >> a custom hack in libsvn_client/patch.c to deal with this case.
>> >>
>> >
>> > Good point: it sounds like it would be useful for the lib to provide
>> > functions for handling Windows paths even when running on Unix.
>> >
>>
>> No wait -- when do you ever have to deal with Windows paths on Unix?
>> where do they come from? Those are not valid filesystem paths on the OS
>> where your client is running -- so what's the use case?
>
> I've briefly hinted at it above:
> You get a patch someone created on Windows, so it contains paths using
> backslashes as separators, and you want 'svn patch' to apply it to
> a working copy you have on a unix machine.

Even on Windows, how do you get a patch with backslashes? I just checked,
and both svn diff and GNU diff use forward slashes.

Roman.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2416752
Received on 2009-11-11 21:59:51 CET

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