名称

svn proplist (plist, pl) — 列出所有的属性。

概要

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, and the second lists unversioned remote properties on a repository revision (TARGET determines only which repository to access).

选项

--changelist ARG
--depth ARG
--quiet (-q)
--recursive (-R)
--revision (-r) REV
--revprop
--verbose (-v)
--xml

例子

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

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

But with the --verbose (-v) flag, svn proplist is extremely handy as it also shows you the values for the properties:

$ svn proplist -v 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>