SVN Import Fail

If you ever get an error like this,

$ svn import /home/user/repos/new file:///home/svn/repos/default/ -m “initial”
svn: Unable to open an ra_local session to URL
svn: Unable to open repository ‘file:///home/svn/repos/default’

after an svn import it’s because, like me, you’re lame. The syntax is wrong and should look like this,

$ svn import /home/svn/repos/default/ file:///home/user/repos -m “initial import”

Notice the source is first then the repo you want to import to. Doh!

About the Author, Dan Cameron:

I'm the owner and solution engineer , a web solutions company that specializes in web development including WordPress.

I started my first blog in 2003 and transitioned to WordPress in 2004. Since moving to WordPress I've written a few plugins and themes for public consumption. Lately I'm busy engineering/building/coding and have only been able to share a few code snippets.

If you're in need of some web development, web design or custom WordPress plugins and/or themes contact me, I'll be happy to discuss it with you.

Read More »

  • http://www.buiss-ultimo.com Eycke

    Thanks for this advice!!! I was searchg for hours! You saved my night.

  • Kids

    your simple tip saved a lot of hours ;)

  • http://twitter.com/CoachOutlet11 hanxiaoniu