svn propset

Fixing a broken EOL file

If you find a file that was incorrectly checked in, it’s not too hard to fix.

First, change the file to the correct line-ending style for your platform. Any programming editor should be able to switch styles with some built-in command, or you can use a ‘fromdos’ or ‘todos’-type utility.

Once it’s fixed, set the property and check it in:

For a file: svn propset svn:eol-style native filename svn commit filename
For a symlink: svn propset svn:special native filename svn commit filename
For a binary: svn propset svn:mime-type application/octet-stream <filename> svn commit filename

Still getting ? on some directories? ¬†Make sure you don’t have a checkout within a checkout

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s