Name
svn propget — Print the value of a property.
Synopsis
svn propgetPROPNAME
[TARGET
[@REV
]...]
svn propgetPROPNAME
--revprop -rREV
[URL
]
Description
Print the value of a property on files, directories, or revisions. The first form prints the versioned property of an item or items in your working copy, and the second prints unversioned remote properties on a repository revision. See Properties for more information on properties.
Alternate names
pget, pg.
Changes
Working copy; repository only if operating on a URL.
Accesses repository
Only if operating on a URL.
Options
--changelistARG
--depthARG
--recursive (-R) --revision (-r)REV
--revprop --strict --xml
Examples
Examine a property of a file in your working copy:
$ svn propget svn:keywords foo.c Author Date Rev
The same goes for a revision property:
$ svn propget svn:log --revprop -r 20 Began journal.
Lastly, you can get svn
propget output in XML format with the
--xml
option:
$ svn propget --xml svn:ignore . <?xml version="1.0"?> <properties> <target path=""> <property name="svn:ignore">*.o </property> </target> </properties>
Get Version Control with Subversion, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.