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

Confusing error

From: Noah Spurrier <noah_at_noah.org>
Date: 2007-08-06 00:40:47 CEST

I had just finished tweaking my ~/.subversion/config file to add more MIME
types. For no good reason I set the MIME type for CPP files to text/x-c++
(Oops). The I tried adding directory tree of code.

     svn add *

I quickly get the following message after which svn stops with error code 1:

     A BMP.CPP
     svn: MIME type 'text/x-c++' ends with non-alphanumeric character

The problem is that when I checked the .svn/entries file I saw that the
offending file was actually scheduled for addition. Furthermore if I then run
"svn add *" again it would continue where it stopped and add the rest of the
files in the directory tree (oddly most were C files, not C++).

It was a confusing error at first because Subversion seemed to imply that
there is something wrong with the file rather than the ~/.subversion/config.
I realized the error was referring to a problem with the MIME type in
~/.subversion/config and not the file being added. But it seems wrong that
Subversion would stop and return an error code, yet still successfully
schedule the file for addition. Would this behavior qualify as a bug?

I fixed the config file and had no more problems.

Yours,
Noah

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 6 00:39:38 2007

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.