VersionControl_SVN_Command | --VersionControl_SVN_Command_Proplist
List all properties on files, dirs, or revisions.
$switches is an array containing one or more command line options defined by the following associative keys:
$switches = array( 'v [verbose]' => true|false, // prints extra information 'R' => true|false, // descend recursively 'recursive' => true|false, // descend recursively 'r [revision]' => 'ARG (some commands also take ARG1:ARG2 range) A revision argument can be one of: NUMBER revision number "{" DATE "}" revision at start of the date "HEAD" latest in repository "BASE" base rev of item's working copy "COMMITTED" last commit at or before BASE "PREV" revision just before COMMITTED', // either 'r' or 'revision' may be used 'q [quiet]' => true|false, // prints as little as possible 'revprop' => true|false, // operate on a revision property (use with r) 'username' => 'Subversion repository login', 'password' => 'Subversion repository password', 'no-auth-cache' => true|false, // Do not cache authentication tokens 'config-dir' => 'Path to a Subversion configuration directory' );
Note: Subversion does not offer an XML output option for this subcommand
The non-interactive option available on the command-line svn client may also be set (true|false), but it is set to true by default.
Usage example: <?php require_once 'VersionControl/SVN.php'; // Set up runtime options. Will be passed to all // subclasses. $options = array('fetchmode' => VERSIONCONTROL_SVN_FETCHMODE_RAW); // Pass array of subcommands we need to factory $svn = VersionControl_SVN::factory(array('proplist'), $options); // Define any switches and aguments we may need $switches = array('revprop' => true, 'r' => '17', 'username' => 'user', 'password' => 'pass'); $args = array('svn://svn.example.com/repos/TestProj/trunk'); // Run command try { print_r($svn->proplist->run($args, $switches)); } catch (VersionControl_SVN_Exception $e) { print_r($e->getMessage()); } ?>
<?php require_once 'VersionControl/SVN.php'; // Set up runtime options. Will be passed to all // subclasses. $options = array('fetchmode' => VERSIONCONTROL_SVN_FETCHMODE_RAW); // Pass array of subcommands we need to factory $svn = VersionControl_SVN::factory(array('proplist'), $options); // Define any switches and aguments we may need $switches = array('revprop' => true, 'r' => '17', 'username' => 'user', 'password' => 'pass'); $args = array('svn://svn.example.com/repos/TestProj/trunk'); // Run command try { print_r($svn->proplist->run($args, $switches)); } catch (VersionControl_SVN_Exception $e) { print_r($e->getMessage()); } ?>
[line 135]
VersionControl_SVN_Command_Proplist __construct( )