I'm trying to add a text file to SVN and it has different ideas. Using tortoise SVN and right clicking "Add.." I get an unhappy message telling me the file has a binary mime type property. And it won't add it to the repository.
I can't think of why that would be, as it's one of several text files (SQL stored procedure listings in this case) that I created at once. (Three files, in fact, give me this message, while two others were added just fine.)
When I tried changing the mime property on the file via svn propset svn:mime-type text/plain
I'm given a warning that the file isn't under version control, which is of course 100% true.
What can I do to get SVN to recognize these files as text, and add them to the repository?
You should do the following steps (using TortoiseSVN) to check what is the source of the failure:
TortoiseSVN > Settings
, and open there General > Subversion configuration file > Edit
."prc"
(without double quotes).*.prc = svn:mime-type=application/octet-stream
, this is the reason that the property is added.autoprops
come from another source (see Subversion wiki for details).Try to do the following steps:
test.prc
(with some content) to your directory (a local copy).TortoiseSVN > Add
on that file.By the way, some information about your Subversion server version, TortoiseSVN client version would be helpful ...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With