名称
svn info — 显示本地或远程条目的信息。
概要
svn info [TARGET[@REV]...]
描述
打印你的工作拷贝路径和URL的信息,包括:
-
路经
-
名称
-
URL
-
版本库的根
-
版本库的UUID
-
Revision
-
节点类型
-
最后修改的作者
-
最后修改的修订版本
-
最后修改的日期
-
锁定令牌
-
锁定拥有者
-
锁定创建时间
-
Lock Expires (date)
Additional kinds of information available only for working copy paths are:
-
Schedule
-
Copied From URL
-
Copied From Rev
-
Text Last Updated
-
Properties Last Updated
-
Checksum
-
Conflict Previous Base File
-
Conflict Previous Working File
-
Conflict Current Base File
-
Conflict Properties File
别名
无
改变
无2
是否访问版本库
对URL操作时访问
选项
--revision (-r) REV --recursive (-R) --targets FILENAME --incremental --xml --username USER --password PASS --no-auth-cache --non-interactive --config-dir DIR
例子
svn info会展示工作拷贝所有项目的所有有用信息,它会显示文件的信息:
$ svn info foo.c Path: foo.c Name: foo.c URL: http://svn.red-bean.com/repos/test/foo.c Repository Root: http://svn.red-bean.com/repos/test Repository UUID: 5e7d134a-54fb-0310-bd04-b611643e5c25 Revision: 4417 Node Kind: file Schedule: normal Last Changed Author: sally Last Changed Rev: 20 Last Changed Date: 2003-01-13 16:43:13 -0600 (Mon, 13 Jan 2003) Text Last Updated: 2003-01-16 21:18:16 -0600 (Thu, 16 Jan 2003) Properties Last Updated: 2003-01-13 21:50:19 -0600 (Mon, 13 Jan 2003) Checksum: /3L38YwzhT93BWvgpdF6Zw==
它也会展示目录的信息:
$ svn info vendors Path: vendors URL: http://svn.red-bean.com/repos/test/vendors Repository Root: http://svn.red-bean.com/repos/test Repository UUID: 5e7d134a-54fb-0310-bd04-b611643e5c25 Revision: 19 Node Kind: directory Schedule: normal Last Changed Author: harry Last Changed Rev: 19 Last Changed Date: 2003-01-16 23:21:19 -0600 (Thu, 16 Jan 2003)
svn info也可以针对URL操作(另外,可以注意一下例子中的readme.doc文件已经被锁定,所以也会显示锁定信息):
$ svn info http://svn.red-bean.com/repos/test/readme.doc Path: readme.doc Name: readme.doc URL: http://svn.red-bean.com/repos/test/readme.doc Repository Root: http://svn.red-bean.com/repos/test Repository UUID: 5e7d134a-54fb-0310-bd04-b611643e5c25 Revision: 1 Node Kind: file Schedule: normal Last Changed Author: sally Last Changed Rev: 42 Last Changed Date: 2003-01-14 23:21:19 -0600 (Tue, 14 Jan 2003) Text Last Updated: 2003-01-14 23:21:19 -0600 (Tue, 14 Jan 2003) Checksum: d41d8cd98f00b204e9800998ecf8427e Lock Token: opaquelocktoken:14011d4b-54fb-0310-8541-dbd16bd471b2 Lock Owner: harry Lock Created: 2003-01-15 17:35:12 -0600 (Wed, 15 Jan 2003)