You can get the working copy of the whole repository MyRepo, too. Note that instead of checking out the trunk, you can check out some branch or a tag (assuming they already exist in the repository). The working copy will be located in MyWorkingCopy directory on your computer. Here is an example: $ svn checkout MyWorkingCopyĪs a result, you will get a working copy of the trunk of a project called MyProject that resides in MyRepo repository. Your local copy of the project is called a working copy and you create it by issuing the svn checkout command. You can use the command line svn client or any GUI-based client that you prefer. To begin making modifications to your project’s data, you have to create a local copy of the versioned project. Here is an example: $ svn import -m "Initial project import" In case you want to import existing non-versioned data into an SVN repository, you should run the svn import command. Basic tasks Importing data into the repository There can be as much working copies from the same repository or project as you want with any combination of local modifications. The administrative directory contains metadata necessary for Subversion to manage the version-control capabilities. A working copy has an administrative directory named .svn at its root. You can think of the working copy as of a regular directory with version-control capabilities. The working copy contains your project’s data and looks and acts like a regular directory on your local file system, but with one major difference – the working copy tracks the status and changes of files and directories within. You use the working copy to modify the contents of your project and fetch changes committed by others. The working copy is your local and private workspace that you use to interact with the central Subversion repository. Direct access (Windows-style): file:///C:/Repositories/MyRepo/trunk/MyProject.Direct access (Unix-style): file:///var/svn/repos/MyRepo/MyProject/tags/1.1.0.svnserve: svn:///repos/MyRepo/MyProject/branches/MyBranch.The repository acts as a single source of truth and - as a central storage - it contains the complete history of changes of the versioned data in form of revisions. The repository is a version control database that often resides on a server and is usually exposed either by an Apache HTTP Server (through the mod_dav_svn module) or by an svnserve server. We do not maintain a list of such clients instead, we recommend you do a Web search for Subversion GUI client. If you are not familiar with Subversion, you may be better served by a graphical client. Now you can start using the command line client to interact with the remote repository. You should see the following output: $ svn Right after you install the client you should be able to test it by issuing the svn command. If you want to compile the software for yourself, grab the source at the Source Code page. The list of sites where you can obtain a pre-built Subversion client is available at the official binary packages page. To install the client program, you can build it yourself from a source code release or download a binary package. Install the svn client to start collaborating on a project that is using Subversion as its version control system.
0 Comments
Leave a Reply. |