Delete file with all history from svn repository

This has recently become much more straightforward with the command svndumpfilter. Details are available in the subversion documentation here. Basically, to avoid conflicts (explained here), it takes a repo dump and redoes each commit, either including or excluding a given file prefix. Basic syntax: svndumpfilter exclude yourfileprefix < yourdump > yournewdump Exclude is probably what … Read more

How do I tell Subversion to treat a file as a binary file?

It is possible to manually identify a file located within a repository as binary by using: svn propset svn:mime-type application/octet-stream <filename> This is generally not necessary, as Subversion will attempt to determine whether a file is binary when the file is first added. If Subversion is incorrectly tagging a certain type as “text” when it … Read more

An SVN error (200 OK) when checking out from my online repository

I had to dig into this issue too and found the following pages which lead me to the solution: – http://comments.gmane.org/gmane.comp.version-control.subversion.devel/117844 (See especially the link to “Julian’s patch”.) There is stated that the “OPTIONS of <url>: 200 (<url>) OK” error is quite misleading and often just means that the repository URL is wrong.

How to import svn branches and tags into git-svn?

You’ll need several steps. supply proper trunk, branches and tags folder names and fetch svn repo: git svn init -t tags -b branches -T trunk https://mysvn.com/svnrepo git svn fetch Since tags in svn are real branches, create git tags from tag branches: git for-each-ref –format=”%(refname:short) %(objectname)” refs/remotes/tags | cut -d / -f 3- | while … Read more