How do I tell Subversion (svn) to treat a file as a binary file?
相关问题
- How can I set the SVN password with Emacs 23.1 bui
- If statements in .htaccess files, to enable passwo
- SVN+SSH checkout over VPN using tortoise SVN, Smar
- Mercurial compared to private branches in SVN
- Using Subversion and SourceSafe at the same time?
相关文章
- Is there a version control system abstraction for
- Intermittent “SVNException: svn: E175002: Connecti
- IntelliJ Subversion Authentication Required Dialog
- TortoiseHG and hgsubversion (Windows): “no module
- Incompatible JavaHl library loaded
- TFS vs. JIRA/Bamboo/SVN [closed]
- converting svn repo to git using reposurgeon
- SVN查看日志超时
From page 367 of the Subversion book
Hand editing would be done by
As per the Subversion FAQ, you can use svn propset to change the svn:mime-type property to application/octet-stream
Basically, you have to set the mime type to octet-stream:
If using tortoise svn in Windows, right click on the file and go to properties. Click on new and add a new property of type svn:mime-type. For the value put: application/octet-stream
Although Subversion tries to automatically detect whether a file is binary or not, you can override the mime-type using svn propset. For example,
svn propset svn:mime-type application/octet-stream example.txt
. This will make your file act as a collection of bytes rather than a text file. See also, the svn manual on File Portability.If 'svn add' guesses the incorrect type and gives you an error like the following:
then the workaround is to add the file without properties and then set the properties in a second step: