名称

svn proplist — 列出所有的属性。

概要

svn proplist [TARGET[@REV]...]
svn proplist --revprop -r REV [TARGET]

描述

List all properties on files, directories, or revisions. The first form lists versioned properties in your working copy, while the second lists unversioned remote properties on a repository revision (TARGET determines only which repository to access).

别名

plist, pl

改变

Working copy; repository only if operating on a URL

是否访问版本库

只有在对URl操作时会

选项

--verbose (-v)
--depth ARG
--revision (-r) REV
--quiet (-q)
--revprop
--xml
--username USER
--password PASS
--no-auth-cache
--non-interactive
--config-dir DIR
--changelist ARG

例子

你可以使用proplist察看你的工作拷贝的一个项目的属性:

$ svn proplist foo.c
Properties on 'foo.c':
  svn:mime-type
  svn:keywords
  owner

通过--verbose选项,svn proplist也可以非常便利的显示属性的值:

$ svn proplist --verbose foo.c
Properties on 'foo.c':
  svn:mime-type : text/plain
  svn:keywords : Author Date Rev
  owner : sally

Lastly, you can get svn proplist output in xml format with the --xml option:

$ svn proplist --xml 
<?xml version="1.0"?>
<properties>
<target
   path=".">
<property
   name="svn:ignore"/>
</target>
</properties>