You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Glenn Serre <ga...@spiresoftware.com> on 2006/04/06 20:10:57 UTC

Convincing win32 command-line client to output forward slashes instead of backward slashes?

Good afternoon,

Is there any way to tell the win32 svn command-line client to output forward 
slashes instead of backward slashes?  The backward slashes are a little 
inconvenient when using the cygwin shell.

If not, I guess I'll download the source and add the feature myself.

Thanks!
--Glenn S.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Convincing win32 command-line client to output forward slashes instead of backward slashes?

Posted by Nico Kadel-Garcia <nk...@comcast.net>.
Nathan Kidd wrote:
> Glenn Serre wrote:
>> Is there any way to tell the win32 svn command-line client to output
>> forward slashes instead of backward slashes?  The backward slashes
>> are a little inconvenient when using the cygwin shell.
>
> Install the subversion package in cygwin so 'svn' is from /usr/bin
> instead of picking up with win32 svn.exe from your path.

True, and it recently updated to 1.3.0. However, end-of-line characters can 
cause..... adventures hopping from CygWin to TortoiseSVN or other Windows 
tools if you're not careful to set the CygWin EOL to match that of Windows. 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Convincing win32 command-line client to output forward slashes instead of backward slashes?

Posted by Nathan Kidd <na...@spicycrypto.ca>.
Glenn Serre wrote:
> Is there any way to tell the win32 svn command-line client to output 
> forward slashes instead of backward slashes?  The backward slashes are a 
> little inconvenient when using the cygwin shell.

Install the subversion package in cygwin so 'svn' is from /usr/bin 
instead of picking up with win32 svn.exe from your path.

-Nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Convincing win32 command-line client to output forward slashes instead of backward slashes?

Posted by Nathan Kidd <na...@spicycrypto.ca>.
Glenn Serre wrote:
> 
> Mark Phippard wrote:
>> Have you tried using the Cygwin version of the command line?  I would 
>> assume it would output backslashes.
>>
> 
> The cygwin version appears to have the problem of not handling an 
> svn:eol-style of native the way we want.  It appears to not do the lf to 
> cr-lf conversion on checkout even if the directory is mounted in text 
> mode, which would be OK except that it makes me suspect that it also 
> does not do the cr-lf to lf conversion on checkin, which we want.

You can change your cygwin configuration to use DOS line endings then. 
(You can do this by re-running setup.exe, or I think there's a registry 
tweak as well.)  IIRC internally svn only uses \n, so there should be no 
problem with that conversion.

-Nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Convincing win32 command-line client to output forward slashes instead of backward slashes?

Posted by Glenn Serre <ga...@spiresoftware.com>.
Good afternoon Steve,

Steve Williams wrote:
>>>Have you tried using the Cygwin version of the command line?  I would
>>>assume it would output backslashes.
>>>
>>
>>The cygwin version appears to have the problem of not handling an
>>svn:eol-style
>>of native the way we want.  It appears to not do the lf to cr-lf
>>conversion on
>>checkout even if the directory is mounted in text mode, which would be OK
>>except
>>that it makes me suspect that it also does not do the cr-lf to lf
>>conversion on
>>checkin, which we want.
> 
> 
> So you want a client that is a half-breed mutant of Windows and Unix?  You
> want the forward slashes from Unix, but the line endings from Windows?

If you want to put it that way, yes, but I' note that forward slash is a valid 
file separator char on Windows, so the half-breed part seems inaccurate. 
Unusual for a Windows client, perhaps.

To restate things in case it is unclear, all I want is an option to have the svn 
win32 command line client output forward slashes instead of backward slashes.

Aside, the cygwin cvs client outputs forward slashes but performs the cr-lf 
conversion in the directory is mounted in text mode.

Thanks,
--Glenn S.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Convincing win32 command-line client to output forward slashes instead of backward slashes?

Posted by Steve Williams <st...@kromestudios.com>.
>> Have you tried using the Cygwin version of the command line?  I would
>> assume it would output backslashes.
>>
>
> The cygwin version appears to have the problem of not handling an
> svn:eol-style
> of native the way we want.  It appears to not do the lf to cr-lf
> conversion on
> checkout even if the directory is mounted in text mode, which would be OK
> except
> that it makes me suspect that it also does not do the cr-lf to lf
> conversion on
> checkin, which we want.

So you want a client that is a half-breed mutant of Windows and Unix?  You
want the forward slashes from Unix, but the line endings from Windows?

-- 
Sly



This message and its attachments may contain legally privileged or confidential information. This message is intended for the use of the individual or entity to which it is addressed. If you are not the addressee indicated in this message, or the employee or agent responsible for delivering the message to the intended recipient, you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments, which does not relate to the official business of the sending company must be taken not to have been sent or endorsed by the sending company or any of its related entities. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Convincing win32 command-line client to output forward slashes instead of backward slashes?

Posted by Mark Phippard <ma...@softlanding.com>.
Glenn Serre <ga...@spiresoftware.com> wrote on 04/06/2006 04:36:13 PM:

> The cygwin version appears to have the problem of not handling an 
svn:eol-style 
> of native the way we want.  It appears to not do the lf to cr-lf 
conversion on 
> checkout even if the directory is mounted in text mode, which would be 
OK except 
> that it makes me suspect that it also does not do the cr-lf to lf 
conversion on 
> checkin, which we want.

You might be better off pursuing that issue, or searching for it:

http://svn.haxx.se/

It sounds like the Cygwin version of the command line might just consider 
"lf" to be the native line ending in all cases.

I'd suggest reposting with a new subject if you do not find anything.  It 
would be more likely to be spotted by one of the maintainers.

Mark


_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs. 
_____________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Convincing win32 command-line client to output forward slashes instead of backward slashes?

Posted by Glenn Serre <ga...@spiresoftware.com>.
Good afternoon Mark,

Mark Phippard wrote:
> Glenn Serre <ga...@spiresoftware.com> wrote on 04/06/2006 04:10:57 PM:
> 
> 
>>Is there any way to tell the win32 svn command-line client to output 
> 
> forward 
> 
>>slashes instead of backward slashes?  The backward slashes are a little 
>>inconvenient when using the cygwin shell.
>>
>>If not, I guess I'll download the source and add the feature myself.
> 
> 
> Have you tried using the Cygwin version of the command line?  I would 
> assume it would output backslashes.
> 

The cygwin version appears to have the problem of not handling an svn:eol-style 
of native the way we want.  It appears to not do the lf to cr-lf conversion on 
checkout even if the directory is mounted in text mode, which would be OK except 
that it makes me suspect that it also does not do the cr-lf to lf conversion on 
checkin, which we want.

Thanks,
--Glenn S.


> Mark
> 
> 
> _____________________________________________________________________________
> Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs. 
> _____________________________________________________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Convincing win32 command-line client to output forward slashes instead of backward slashes?

Posted by Mark Phippard <ma...@softlanding.com>.
Glenn Serre <ga...@spiresoftware.com> wrote on 04/06/2006 04:10:57 PM:

> Is there any way to tell the win32 svn command-line client to output 
forward 
> slashes instead of backward slashes?  The backward slashes are a little 
> inconvenient when using the cygwin shell.
> 
> If not, I guess I'll download the source and add the feature myself.

Have you tried using the Cygwin version of the command line?  I would 
assume it would output backslashes.

Mark


_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs. 
_____________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org