List each TARGET file and the contents of each TARGET directory as
they exist in the repository. If TARGET is a working copy path, the
corresponding repository URL will be used. If specified, REV determines
in which revision the target is first looked up.
The default TARGET is '.', meaning the repository URL of the current
working directory.
With --verbose, the following fields will be shown for each item:
Revision number of the last commit
Author of the last commit
If locked, the letter 'O'. (Use 'svn info URL' to see details)
Size (in bytes)
Date and time of the last commit
Valid options:
-r [--revision] ARG : ARG (some commands also take ARG1:ARG2 range)
A revision argument can be one of:
NUMBER revision number
'{' DATE '}' revision at start of the date
'HEAD' latest in repository
'BASE' base rev of item's working copy
'COMMITTED' last commit at or before BASE
'PREV' revision just before COMMITTED
-v [--verbose] : print extra information
-R [--recursive] : descend recursively, same as --depth=infinity
--depth ARG : limit operation by depth ARG ('empty', 'files',
'immediates', or 'infinity')
--incremental : give output suitable for concatenation
--xml : output in XML
Global options:
--username ARG : specify a username ARG
--password ARG : specify a password ARG
--no-auth-cache : do not cache authentication tokens
--non-interactive : do no interactive prompting
--trust-server-cert : accept unknown SSL server certificates without
prompting (but only with '--non-interactive')
--config-dir ARG : read user configuration files from directory ARG
--config-option ARG : set user configuration option in the format:
FILE:SECTION:OPTION=[VALUE]
For example:
servers:global:http-library=serf
svn list使用示例:
svn list svn://192.168.231.1/SVNHome
遇到连接超时的错误:
查看连接的IP上是否已经启动SVN服务,检查防火墙端口开放状态。
解决连通问题之后,会提示输入“root”用户的密码,如下图:
这里使用其它用户访问,直接回车就可以了,然后提示输入用户名,输入完成回车,
然后提示输入密码,输入完成回车,如果输入正确就可以看到类似的信息了。
svn checkout使用示例:
先创建一个目录,例如:mkdir test
检出到test目录下
svn checkout svn://192.168.231.1/SVNHome ./test
由于之前已经选择保存密码了,所以这里不再需要验证,输出如下图:
Checked out revision 10.检出成功,去test目录下看看吧。
更新版本库:
切换目录到之前检出的文件目录,然后执行命令:svn update
如果之前没有选择保存密码,则会提示输入检出时使用的用户的密码!