云网牛站
所在位置:首页 > Linux常用命令大全 > 更多实用命令 > svnlook命令

svnlook命令

因为svnlook命令通过直接版本库访问(因此只可以在保存版本库的机器上工作)工作,所以他通过版本库的路径访问,而不是URL。

如果没有指定修订版本或事物,svnlook缺省的是版本库最年轻的(最新的)修订版本。

svnlook选项

Options in svnlook are global, just like in svn and svnadmin; however, most  options apply only to one subcommand since the functionality of svnlook is  (intentionally) limited in scope.

--copy-info
Causes svnlook changed to show detailed copy source information.

--no-diff-deleted
Prevents svnlook diff from printing differences for deleted files. The default  behavior when a file is deleted in a transaction/revision is to print the same  differences that you would see if you had left the file but removed all the  content.

--no-diff-added
Prevents svnlook diff from printing differences for added files. The default  behavior when you add a file is to print the same differences that you would see  if you had added the entire contents of an existing (empty) file.

--revision (-r)
指定要进行检查的特定修订版本。

--revprop
操作针对修订版本属性,而不是Subversion文件或目录的属性。这个选项需要你传递-- revision(-r)参数。

--transaction (-t)
指定一个希望检查的特定事物ID。

--show-ids
显示文件系统树中每条路径的文件系统节点修订版本ID。

实例

[root@localhost ~]# svnlook diff /var/www   #打印修改的文件和属性的区别

[root@localhost ~]# svnlook history /var/www/tpl  #打印路径的版本库历史

[root@localhost ~]# svnlook info -r 40 /var/www  #打印作者、时间戳、日志信息大小和日志信息

[root@localhost ~]# svnlook tree /var/www  #打印版本库的目录树

相关命令