[prev in list] [next in list] [prev in thread] [next in thread] 

List:       subversion-users
Subject:    RE:  svn:eol-style issue
From:       "Lityagin, Alexandr" <Alexandr.Lityagin () transas ! com>
Date:       2006-10-31 7:49:11
Message-ID: 528853D3C5ED2C4AA8990B504BA7FB8566FE7B () sol ! transas ! com
[Download RAW message or body]

Hallo Guilio, i have gotten same problems. The reason was in bug of my
editor - it realy saves some lines with wrong EOL. I have to heal them
by another editor. But in unix, as i know, the some utility provided to
heal and change EOL for files. IMHO, It would be an great major to
provide this utility in TSVN for automaticaly heal broken files at
commit/import, but at present i do it manualy.
 
-----Original Message-----
From: Giulio Troccoli [mailto:Giulio.Troccoli@uk.linedata.com] 
Sent: Monday, October 30, 2006 5:07 PM
To: users@subversion.tigris.org
Subject: svn:eol-style issue
 
Hi everybody,
 
I have an issue with the EOL and consequently with the svn:eol-style
property. I have found another post about it but it didn't say how to
solve the issue, and also it was a bit old so maybe now we do have a
solution.
 
The problem is across-platform problem. We have Subversion 1.3 installed
on a Linux box, but the product is maintained on AIX, Solaris and
Windows. All developers use Visual Studio to do their job and
TortoiseSVN to commit the changes.
 
On AIX and Windows everything is fine, but on Solaris sometimes the
build failed because the compiler does not like the EOL of some files.
These happens (and strangely not always) when the files have been edited
using Visual Studio.
 
I read the Subversion documentation and I found the svn:eol-style
property. I have set it to native on ALL source files, and that's when I
started having the issue.
 
Now, when I tried to commit some changes from Windows, the commit failed
with
 
Error         Commit failed (details follow):
Error         File '*****' has inconsistent newlines
Error         Inconsistent line ending style
 
In this cases I have to delete the svn:eol-style property on those files
and commit again. This, however, means that I cannot be sure that the
build on the Solaris platform will succeed because I cannot be sure that
the EOL on those files will be correct for that platform.
 
What can I do?
 
Thanks
Giulio
 
 
-------------------
Giulio Troccoli
Technical Consultant
 
Linedata Services (UK) Ltd. Bishopsgate Court, 4-12 Norton Folgate,
London E1 6DB
T +44 (0)20 7360 1914   F +44 (0)20 7360 1974
E  <mailto:giulio.troccoli@uk.linedata.com>
giulio.troccoli@uk.linedata.com   W  <http://www.linedata.com>
www.linedata.com
MSN Messenger  <mailto:giulio@troccoli.it> giulio@troccoli.it
 

[Attachment #3 (text/html)]

<html xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C6FCDA.32C996A0">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Courier;
	panose-1:2 7 4 9 2 2 5 2 4 4;
	mso-font-charset:0;
	mso-generic-font-family:modern;
	mso-font-format:other;
	mso-font-pitch:fixed;
	mso-font-signature:3 0 0 0 1 0;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;
	mso-font-charset:204;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
span.EmailStyle17
	{mso-style-type:personal;
	mso-style-noshow:yes;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:windowtext;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:navy;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:35.4pt;
	mso-footer-margin:35.4pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
	{mso-style-name:"\041E\0431\044B\0447\043D\0430\044F \
\0442\0430\0431\043B\0438\0446\0430";  mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=RU link=blue vlink=purple style='tab-interval:35.4pt'>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:EN-US'>Hallo
Guilio, i have gotten same problems. The reason was in bug of my editor &#8211;
it realy saves some lines with wrong EOL. I have to heal them by another editor.
But in unix, as i know, the some utility provided to heal and change EOL for
files. IMHO, It would be an great major to provide this utility in TSVN for
automaticaly heal broken files at commit/import, but at present i do it \
manualy.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Giulio Troccoli
[mailto:Giulio.Troccoli@uk.linedata.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, October 30, 2006
5:07 PM<br>
<b><span style='font-weight:bold'>To:</span></b> users@subversion.tigris.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> svn:eol-style \
issue</span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span \
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Hi
everybody,<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>


<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>I
have an issue with the EOL and consequently with the svn:eol-style property. I
have found another post about it but it didn&#8217;t say how to solve the
issue, and also it was a bit old so maybe now we do have a \
solution.<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>


<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>The
problem is across-platform problem. We have Subversion 1.3 installed on a Linux
box, but the product is maintained on AIX, Solaris and Windows. All developers
use Visual Studio to do their job and TortoiseSVN to commit the \
changes.<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>


<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>On
AIX and Windows everything is fine, but on Solaris sometimes the build failed
because the compiler does not like the EOL of some files. These happens (and
strangely not always) when the files have been edited using Visual \
Studio.<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>


<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>I
read the Subversion documentation and I found the svn:eol-style property. I
have set it to native on ALL source files, and that&#8217;s when I started
having the issue.<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>


<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Now,
when I tried to commit some changes from Windows, the commit failed \
with<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>


<div style='border:solid #CCCCCC 1.0pt;padding:3.0pt 0cm 0cm 3.0pt;mso-element:
para-border-div'>

<p class=MsoNormal style='margin-left:35.4pt;line-height:135%;background:white'><font
size=2 color=black face=Courier><span lang=EN-GB style='font-size:10.0pt;
line-height:135%;font-family:Courier;color:black;mso-ansi-language:EN-GB'>Error&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 Commit failed (details follow):<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt;line-height:135%;background:white'><font
size=2 color=black face=Courier><span lang=EN-GB style='font-size:10.0pt;
line-height:135%;font-family:Courier;color:black;mso-ansi-language:EN-GB'>Error&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 File '*****' has inconsistent newlines<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt;line-height:135%;background:white'><font
size=2 color=black face=Courier><span lang=EN-GB style='font-size:10.0pt;
line-height:135%;font-family:Courier;color:black;mso-ansi-language:EN-GB'>Error&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 Inconsistent line ending style<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>


<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>In
this cases I have to delete the svn:eol-style property on those files and
commit again. This, however, means that I cannot be sure that the build on the
Solaris platform will succeed because I cannot be sure that the EOL on those
files will be correct for that platform.<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>


<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>What
can I do?<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>


<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Thanks<o:p></o:p></span></font></p>


<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Giulio<o:p></o:p></span></font></p>


<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>


<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>


<p class=MsoNormal style='margin-left:35.4pt'><font size=1 face=Tahoma><span
lang=EN-GB style='font-size:8.0pt;font-family:Tahoma;mso-ansi-language:EN-GB'>-------------------<o:p></o:p></span></font></p>


<p class=MsoNormal style='margin-left:35.4pt'><strong><b><font size=1
face=Tahoma><span lang=EN-GB style='font-size:8.0pt;font-family:Tahoma;
mso-ansi-language:EN-GB'>Giulio Troccoli</span></font></b></strong><font
size=1 face=Tahoma><span lang=EN-GB style='font-size:8.0pt;font-family:Tahoma;
mso-ansi-language:EN-GB'><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=1 face=Tahoma><span
lang=EN-GB style='font-size:8.0pt;font-family:Tahoma;mso-ansi-language:EN-GB'>Technical
 Consultant<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=1 face=Tahoma><span
lang=EN-GB style='font-size:8.0pt;font-family:Tahoma;mso-ansi-language:EN-GB'>&nbsp;<o:p></o:p></span></font></p>


<p class=MsoNormal style='margin-left:35.4pt'><strong><b><font size=1
face=Tahoma><span lang=EN-GB style='font-size:8.0pt;font-family:Tahoma;
mso-ansi-language:EN-GB'>Linedata Services (UK) \
Ltd.</span></font></b></strong><strong><b \
style='mso-ansi-font-weight:normal;mso-bidi-font-weight:normal'><font size=1 \
face=Tahoma><span lang=EN-GB style='font-size:8.0pt;font-family:Tahoma; \
mso-ansi-language:EN-GB;font-weight:normal'> Bishopsgate Court, 4-12 Norton Folgate, \
London E1 6DB</span></font></b></strong><font size=1 face=Tahoma><span lang=EN-GB \
style='font-size:8.0pt;font-family:Tahoma;mso-ansi-language:EN-GB'><o:p></o:p></span></font></p>


<p class=MsoNormal style='margin-left:35.4pt'><strong><b><font size=1
face=Tahoma><span lang=ES-TRAD style='font-size:8.0pt;font-family:Tahoma;
mso-ansi-language:ES-TRAD'>T</span></font></b></strong><font size=1
face=Tahoma><span lang=ES-TRAD style='font-size:8.0pt;font-family:Tahoma;
mso-ansi-language:ES-TRAD'> +44 (0)20 7360 1914&nbsp; &nbsp;<strong><b><font
face=Tahoma><span style='font-family:Tahoma'>F</span></font></b></strong> +44
(0)20 7360 1974<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><strong><b><font size=1
face=Tahoma><span lang=ES-TRAD style='font-size:8.0pt;font-family:Tahoma;
mso-ansi-language:ES-TRAD'>E</span></font></b></strong><font size=1
face=Tahoma><span lang=ES-TRAD style='font-size:8.0pt;font-family:Tahoma;
mso-ansi-language:ES-TRAD'> </span></font><span lang=EN-GB style='mso-ansi-language:
EN-GB'><a href="mailto:giulio.troccoli@uk.linedata.com"><font size=1
face=Tahoma><span lang=ES-TRAD style='font-size:8.0pt;font-family:Tahoma;
mso-ansi-language:ES-TRAD'>giulio.troccoli@uk.linedata.com</span></font></a></span><font
 size=1 face=Tahoma><span lang=ES-TRAD style='font-size:8.0pt;font-family:Tahoma;
mso-ansi-language:ES-TRAD'>&nbsp;&nbsp; <strong><b><font face=Tahoma><span
style='font-family:Tahoma'>W</span></font></b></strong> </span></font><span
lang=EN-GB style='mso-ansi-language:EN-GB'><a href="http://www.linedata.com"><font
size=1 face=Tahoma><span lang=ES-TRAD style='font-size:8.0pt;font-family:Tahoma;
mso-ansi-language:ES-TRAD'>www.linedata.com</span></font></a></span><font
size=1 face=Tahoma><span lang=ES-TRAD style='font-size:8.0pt;font-family:Tahoma;
mso-ansi-language:ES-TRAD'><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><strong><b><font size=1
face=Tahoma><span lang=EN-GB style='font-size:8.0pt;font-family:Tahoma;
mso-ansi-language:EN-GB'>MSN Messenger</span></font></b></strong><font size=1
face=Tahoma><span lang=EN-GB style='font-size:8.0pt;font-family:Tahoma;
mso-ansi-language:EN-GB'> </span></font><span lang=EN-GB style='mso-ansi-language:
EN-GB'><a href="mailto:giulio@troccoli.it"><font size=1 face=Tahoma><span
style='font-size:8.0pt;font-family:Tahoma'>giulio@troccoli.it</span></font></a></span><font
 size=1 face=Tahoma><span lang=EN-GB style='font-size:8.0pt;font-family:Tahoma;
mso-ansi-language:EN-GB'><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt;mso-ansi-language:
EN-GB'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic