$ svn checkout URL
But there are some nuances in Subversion's handling of URLs that are notable. For example,URLs containing the file:// access method (used for local repositories) must, in accordance with convention, have either a server name of localhost or no server name at all:
$ svn checkout file:///var/svn/repos
$ svn checkout file://localhost/var/svn/repos
Also, users of the file:// scheme on Windows platforms will need to use an unofficially “standard” syntax for accessing repositories that are on the same machine, but on a different drive than the client's current working drive. Either of the two following URL path syntaxes will work, where X is the drive on which the repository resides:
C:\> svn checkout file:///X:/var/svn/repos
C:\> svn checkout "file:///X|/var/svn/repos"
$ svn commit file -m "message"
$ svn update
revision N represents the state of the repository filesystem after the Nth commit.
working copies do not always correspond to any single revision in
the repository; they may contain files from several different revisions.
after you do a clean update at the top of your working copy, it
will generally correspond to exactly one revision in the repository
the svn status command will show you the state of any item in your working copy.
阅读(748) | 评论(0) | 转发(0) |