You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Crespo, Richard P" <RC...@kforce.com> on 2008/12/15 13:26:48 UTC

Binary import error

I have done some test imports into Subversion and found that the
following file has a problem importing into Subversion that kills the
entire import:
 
Error:
'C:\TEMP\.....\Application\jscalendar\lang\calendar-hr.js' 
Error: has inconsistent newlines 
Error: Inconsistent line ending style 

The file in question is a Croatian language file with some special
characters which may explain why I get the following when I add it
individually (I know it says editjs.js as the file name, I get the same
message for the calendar file).
 
Error:  File

Error:  'C:\SVN\.....\Application\jscalendar\lang\calendar-hr.js' 
Error:  has binary mime type property
 
But, I do not see the issue in the fact that it sees it as a binary.
Binary flies CAN be in SVN. Does anyone have any reason why I am getting
the initial error?

 

BTW - When I do the commit, the file is added fine.
 
Thanks,
Rich

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=984441

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Binary import error

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Dec 15, 2008, at 07:26, Crespo, Richard P wrote:

> I have done some test imports into Subversion and found that the  
> following file has a problem importing into Subversion that kills  
> the entire import:
>
> Error:
> 'C:\TEMP\.....\Application\jscalendar\lang\calendar-hr.js'
> Error: has inconsistent newlines
> Error: Inconsistent line ending style

I think Subversion only complains about inconsistent line endings if  
you have requested to set the svn:keywords property on the file. So,  
either do not set that property, or make the file's line endings  
consistent first (e.g. all LF line endings or all CRLF line endings,  
not a mixture of these).


> The file in question is a Croatian language file with some special  
> characters which may explain why I get the following when I add it  
> individually (I know it says editjs.js as the file name, I get the  
> same message for the calendar file).
>
> Error:  File
> Error:  'C:\SVN\.....\Application\jscalendar\lang\calendar-hr.js'
> Error:  has binary mime type property
>
> But, I do not see the issue in the fact that it sees it as a  
> binary. Binary flies CAN be in SVN. Does anyone have any reason why  
> I am getting the initial error?
>
> BTW – When I do the commit, the file is added fine.

This has been discussed before, e.g.:

http://svn.haxx.se/users/archive-2006-07/0510.shtml

And:

http://svn.haxx.se/users/archive-2007-01/0901.shtml

Also filed as this bug:

http://subversion.tigris.org/issues/show_bug.cgi?id=2925

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=988026

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


RE: Re: Binary import error

Posted by R C <cm...@yahoo.com>.
To clarify a little, the first error message is when I try to import the entire directory that the file belongs to. The second error message is when I add the file by itself after I import the rest of the directory. Even though I receive and error about it being a binary file, when I commit the file it adds it to the repository fine (I have opened the file up and the contents are correct). 

As for the encoding setup, it is whatever the default is from the initial install. I did not change it. The beginning of the file is merely a comment -->


/* Croatian language file for the DHTML Calendar version 0.9.2 
* Author Krunoslav Zubrinic <kr...@vip.hr>, June 2003.
_____________

Rich

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=984664

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Re: Binary import error

Posted by R C <cm...@yahoo.com>.
To clarify a little, the first error message is when I try to import the entire directory that the file belongs to. The second error message is when I add the file by itself after I import the rest of the directory. Even though I receive and error about it being a binary file, when I commit the file it adds it to the repository fine (I have opened the file up and the contents are correct). 

As for the encoding setup, it is whatever the default is from the initial install. I did not change it. The beginning of the file is merely a comment -->


/* Croatian language file for the DHTML Calendar version 0.9.2 
* Author Krunoslav Zubrinic <kr...@vip.hr>, June 2003.
_____________

Rich

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=984664

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=988279

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Binary import error

Posted by Henrik Sundberg <st...@gmail.com>.
On Mon, Dec 15, 2008 at 2:26 PM, Crespo, Richard P <RC...@kforce.com> wrote:
> I have done some test imports into Subversion and found that the following
> file has a problem importing into Subversion that kills the entire import:
>
> Error:
> 'C:\TEMP\.....\Application\jscalendar\lang\calendar-hr.js'
> Error: has inconsistent newlines
> Error: Inconsistent line ending style
>
> The file in question is a Croatian language file with some special
> characters which may explain why I get the following when I add it
> individually (I know it says editjs.js as the file name,

What encoding do you use? Eg You can not have native end of lines in
Windows for a file stored with two bytes per character (but UTF-8
works).

> I get the same
> message for the calendar file).
>
> Error:  File
>
> Error:  'C:\SVN\.....\Application\jscalendar\lang\calendar-hr.js'
> Error:  has binary mime type property

This is a different error. Perhaps this file begins with many Croation
characters (making the svn heuristics think of it as binary)?

> But, I do not see the issue in the fact that it sees it as a binary. Binary
> flies CAN be in SVN. Does anyone have any reason why I am getting the
> initial error?
>
> BTW – When I do the commit, the file is added fine.

What did you do, if not commit? Add?
In that case you might just have lost the properties. A little strange though.

HTH
$

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=984661

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: Binary import error

Posted by Henrik Sundberg <st...@gmail.com>.
On Mon, Dec 15, 2008 at 2:26 PM, Crespo, Richard P <RC...@kforce.com> wrote:
> I have done some test imports into Subversion and found that the following
> file has a problem importing into Subversion that kills the entire import:
>
> Error:
> 'C:\TEMP\.....\Application\jscalendar\lang\calendar-hr.js'
> Error: has inconsistent newlines
> Error: Inconsistent line ending style
>
> The file in question is a Croatian language file with some special
> characters which may explain why I get the following when I add it
> individually (I know it says editjs.js as the file name,

What encoding do you use? Eg You can not have native end of lines in
Windows for a file stored with two bytes per character (but UTF-8
works).

> I get the same
> message for the calendar file).
>
> Error:  File
>
> Error:  'C:\SVN\.....\Application\jscalendar\lang\calendar-hr.js'
> Error:  has binary mime type property

This is a different error. Perhaps this file begins with many Croation
characters (making the svn heuristics think of it as binary)?

> But, I do not see the issue in the fact that it sees it as a binary. Binary
> flies CAN be in SVN. Does anyone have any reason why I am getting the
> initial error?
>
> BTW – When I do the commit, the file is added fine.

What did you do, if not commit? Add?
In that case you might just have lost the properties. A little strange though.

HTH
$

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=984661

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=988314

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].