As I’ve probably said before I’m not a fan of working on Windows, but sometimes the choice isn’t yours to be made. Couple this with the problems you have with
SVN, where pieces of software like WordPress, which will often obliterate your metadata directories during updates, things can quickly turn sour. Recently I had to upgrade TortoiseSVN to 1.7, which thankfully fixes this problem. This is a decent improvement because it essentially gets rid of all those annoying
.svn folders we’ve come to know and hate. But, there was a little work to be able to use it. It’s not too complicated, but this should be handy to people with the same problem.
Note: You may want to read through this post before doing anything to make sure you don’t cause yourself any extra problems
Also note: I highly recommend committing any changes and updating before starting, and also doing an SVN cleanup of the whole folder.
First of all you will get the new version of TortoiseSVN installed. You will notice the SVN icon overlays on your directories will disappear, and when you right click the SVN options have pretty much gone, leaving you the option to SVN Upgrade working copy. Selecting this then gives you the option to Upgrade to the new 1.7 format. If you’re lucky this will just work and you’re set. If like me you see errors like this:
Subversion reported an error: Can't open directory 'C:\path\to\blog\wp-includes\js\tinymce\plugins\safari\.svn\text-base': The system cannot find the path specified
then you need to do a little more work. I found that going ahead and creating those
text-base folders is fine. You may get other files or folders that need creating too, for instance I found I had to create a few
entries files too.
Other updates may have got rid of the
.svn folder altogether, giving you an error message like:
"C:\some\folder\" containing working copy admin area is missing.
If you see this the best thing I found was to copy that directory out to back it up, then delete it. Once you finish upgrading TortoiseSVN you can copy it back in. Careful not to forget where these go – it’s easy if you have several! I found myself making folder structures on the desktop that mimicked the one I was copying the directory from, so I could just drag it back in and let Windows work it’s merging magic for me.
Now, at this point you need to remember that upgrading TortoiseSVN will get rid of your ability to run things like SVN update and SVN cleanup on your working copies. I recommend running an SVN cleanup after fixing errors like the ones above and you may even find that you’ll need others too. Luckily for me I had a command line version called SlikSVN installed too. With the <=1.6.x version of SlikSVN (I would recommend 1.6.9 – 64bit available too!) you can still make changes to your working copy even though the GUI based TortoiseSVN won’t let you. You can check what SlikSVN older versions are available for you to download.
Finally, when you’ve sorted the errors and run another SVN cleanup you can upgrade to 1.7. Don’t forget to copy (or merge) your folders back in. They should just show up with the red (modified) icon once copied back in, leaving you to commit them.
Don’t forget to update SlikSVN once you have finished everything, as once you’ve upgraded your repositories you will no longer be able to work on them from the command line.
What others have been saying
- No public Twitter messages.
Tag Cloud.htaccess 644 777 android apache apple augmented reality backup blog blogging c++ centos checkout chmod chown dropbox file permissions google hero htc ios ipad iphone iphone 4 ipod objective-c opencv pear phing php pleask plesk propel propel-gen safe mode server svn sync upgrade uploads vps wordpress www-data xcode yum