Archive

Archive for the ‘Source Control’ Category

Recreating an SVK Depot

May 14, 2009 Leave a comment

I’ve been playing around with svk on my laptop – it allows me to work disconnected from the svn repository at work (which makes it easier to work from home :) ).

Recently, after doing a big chunk of work, I was syncing and merging and noticed some weird issues – so I thought I’d just delete the depot and recreate it then mirror the repository again.  After detaching the depot and deleting the contents of the folder, I tried adding a new depot using svn depotmap and svn depotmap –init but I couldn’t mirror the svn repository again as I was getting a file not found error.  After much uninstall / reinstall thrashing and general frustration I deleted the directory I specified in the depotmap and retried svk depotmap –init and it worked!

Turns out that if the directory specified in the depotmap exists (even if it is empty), the depot will not be initialised.  The key to recreating a depot is to delete the folder specified in the depotmap – not just the contents of the folder.

Categories: Source Control
Follow

Get every new post delivered to your Inbox.