Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subversion - Add text file - File Status A (bin)

Tags:

svn

I don't know why I'm getting (bin) in the file status - I checked the file and there are no special characters. The add and commit worked and the file is probably fine, but I just thought it was odd.

like image 749
Steve Avatar asked May 11 '09 17:05

Steve


People also ask

What does a bin mean in svn?

It just means that this is a binary file (in your case an image) which will be handled differently than text files (for example text files you can update in svn versioning by applying deltas (only changes), but with images you can't). Follow this answer to receive notifications.

What does add do svn?

svn add adds an item (file or directory) to a local working copy. svn add is a local operation and does not contact server. No changes made to a repository when you run svn add . It simply schedules and item to be committed to a repository next time your run svn commit .


1 Answers

From http://subversion.apache.org/faq.html#binary-files

Subversion treats the following files as text:

  • Files with no svn:mime-type
  • Files with a svn:mime-type starting "text/"
  • Files with a svn:mime-type equal to "image/x-xbitmap"
  • Files with a svn:mime-type equal to "image/x-xpixmap"

All other files are treated as binary, meaning that Subversion will:

  • Not attempt to automatically merge received changes with local changes during svn update or svn merge
  • Not show the differences as part of svn diff
  • Not show line-by-line attribution for svn blame

Check your file extension / associated mime type. You can force it to text by doing a propset on the the svn:mime-type to be different than the system's associated mime type.

like image 67
Jeff Ferland Avatar answered Oct 17 '22 20:10

Jeff Ferland