Tuesday, January 4, 2011

Subversion import bites me

I often work on new projects outside subversion tree then move them in at some reasonable point. This usually avoids conflicts inside the group, sometimes it involves an evolving idea or a new template may need converting before updating reducing some noise.

It is important to remember with svn import is that you need to specify the end location of the directory in the tree.

Well I often forget this and its a pain since I haven't found a good way to undo it without just removing or moving all the crap by hand :(

a few examples:

svn import new-theme http://myrepos.svn.beanstalkapp.com/trunk/projectx/webapp

Then recheck it out:

svn checkout http://myrepos.svn.beanstalkapp.com/trunk/projectx/webapp ~/proj/projectx/webapp

Or you can import new stuff into an existing location:

svn import a-few-new-files http://myrepos.svn.beanstalkapp.com/trunk/projectx/webapp