Subversion (svn) beginner's questions

Posted by Marius on Stack Overflow See other posts from Stack Overflow or by Marius
Published on 2010-04-16T13:31:34Z Indexed on 2010/04/16 13:33 UTC
Read the original article Hit count: 152

Filed under:

Hello,

Here's what i'm trying to do. I have a project in /var/www/project. I'd like to use svn for this project. I've installed SVN on my debian server for this purpose, but i don't understand how to use it and the googling got me even more confused. I'd like to create a repository /var/svn/project and use it. After some changes occur, i'd like to export all the code back to /var/www/project. Now here's what i've done:

  • i've created a repository: svnadmin create /var/svn/project
  • i've imported the code: svn import /var/www/project file:///var/svn/project -m "Initial import"
  • i've checked out the code with "Versions" client

Everything seems to work fine, but ... If i go to /var/svn/project, there are no source files from my project there or in any subdirectory. Although the svn client is able to checkout all of those files. So i've read that in svn, files are not stored separately neither in berkley db nor in fsfs filesystems. Then the question is ... how do i export the source back to /var/www/project? If i do an svn export command on the /var/svn/project directory, it says i'm not in a working copy :(

© Stack Overflow or respective owner

Related posts about svn