Svn 简明教程

SVN - Checkout Process

Subversion 提供检出命令以从存储库检出一个工作副本。以下命令将在当前工作目录中创建一个新目录,名为 project_repo。不必担心存储库 URL,因为大多数情况下,它已由具有适当访问权限的 subversion 管理员提供了。

Subversion provides the checkout command to check out a working copy from a repository. Below command will create a new directory in the current working directory with the name project_repo. Don’t bother about the repository URL, as most of the time, it is already provided by the subversion administrator with appropriate access.

[tom@CentOS ~]$ svn checkout http://svn.server.com/svn/project_repo --username=tom

上述命令将产生以下结果。

The above command will produce the following result.

A    project_repo/trunk
A    project_repo/branches
A    project_repo/tags
Checked out revision 1.

每次成功检出操作后,都会打印出修订号。如果你想查看有关存储库的更多信息,请执行 info 命令。

After every successful checkout operation, the revision number will get printed. If you want to view more information about the repository, then execute the info command.

[tom@CentOS trunk]$ pwd
/home/tom/project_repo/trunk

[tom@CentOS trunk]$ svn info

上述命令将产生以下结果。

The above command will produce the following result.

Path: .
URL: http://svn.server.com/svn/project_repo/trunk
Repository Root: http://svn.server.com/svn/project_repo
Repository UUID: 7ceef8cb-3799-40dd-a067-c216ec2e5247
Revision: 1
Node Kind: directory
Schedule: normal
Last Changed Author: jerry
Last Changed Rev: 0
Last Changed Date: 2013-08-24 18:15:52 +0530 (Sat, 24 Aug 2013)

[tom@CentOS trunk]$