Questions for Beginners Subversion (svn)

Here is what I am trying to do. I have a project in / var / www / project. I would like to use svn for this project. I installed SVN on my debian server for this purpose, but I don’t understand how to use it, and googling confused me even more. I would like to create a repository / var / svn / project and use it. After some changes, I want to export all the code back to / var / www / project. Now here is what I did:

  • I created a repository: svnadmin create / var / svn / project
  • I imported the code: svn import / var / www / project file: /// var / svn / project -m "Source Import"
  • I checked the code with the Versions client

Everything works fine, but ... If I go to / var / svn / project, there are no source files from my project or not in any subdirectory. Although the svn client is able to check all of these files. Therefore, I read that in svn files are not saved separately in berkley db or in fsfs file systems. The question then becomes: how do I export the source code to / var / www / project? If I execute the svn export command in the / var / svn / project directory, it says I'm not in a working copy :(

+5
source share
7 answers

First of all, you are right that SVN uses the database structure to store (modify) your files, so you should not expect unprocessed files to appear in the repository folder.

, , (, ).

.

www:

cd /var/www/project
svn checkout /var/svn/project

(/var/www/project) . ,

svm commit -m "Commit message"

.

+3

-, http://svnbook.red-bean.com/ .

. :

svn export file:///var/svn/project /var/www/project

, , , , , , .

+1

svn , . :/var/svn/project - ()

, svn:///tmp/repos my-export

0

, /var/www/project/project.

0

( ), svn export .

0

Svn . /var/www/project , . /var/www/project ( !) wokring.

0

, ​​ Mercurial.

, . , , ( ), , svn FSFS ( ).

, . . , svn.

http://hgbook.red-bean.com/read/

0
source

All Articles