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

Re: Coding system for output of "svn cat"

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Mon, 27 Aug 2012 14:38:08 +0100

Andre Colomb wrote on Mon, Aug 27, 2012 at 14:26:17 +0200:
> Hi list!
>
> I couldn't find any information about this in the Subversion book or the
> built-in documentation.
>
> What is the EOL encoding of text files spit out by the svn cat command?
> Does it depend on the svn:eol-style property?
>

I expect it will be the local EOL style if the property is set to
"native", the specified style if it's set to LF/CR/CRLF, and
byte-for-byte reproduction otherwise.

I also note that 'export' has a --native-eol option. So you could use
'svn export $URL/to/file', or maybe teach that option to the 'svn cat'
command.

> I'm trying to improve the contributed psvn.el mode and need to figure
> out how to get rid of extra ^M characters at the end of every line when
> checking out an older revision (which uses svn cat internally) and
> comparing it with the working copy.
>

svn diff -x--ignore-eol-style
?

> Thanks in advance and kind regards,
> André
> --
> Greetings...
> From: Andre Colomb <acolomb_at_schickhardt.org>
>
Received on 2012-08-27 15:38:46 CEST

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.