Pagine

Thursday 2 February 2017

SVN tutorial n 29 - proplist

Just as Subversion uses properties to store extra information about the files, directories, and revisions that it contains, you might also find properties to be of similar use. You might find it useful to have a place close to your versioned data to hang custom metadata about that data.
The "svn proplist" command shows the List all properties. The synopsis is the following:
 svn proplist [<resource_target>[@<svn_revision>]...]

Example:

 svn proplist myscript.sh
 Properties on 'myscript.sh':
   svn:executable
If you use the --xml option, the result will be in xml format:
 svn proplist myscript.sh --xml
<?xml version="1.0" encoding="UTF-8"?>
<properties>
<target
   path="myscript.sh">
<property
   name="svn:executable"/>
</target>
</properties>