[line 147]
Subversion Update command manager class
Bring changes from the repository into the working copy.
From 'svn update --help':
usage: update [PATH...]
If no revision given, bring working copy up-to-date with HEAD rev. Else synchronize working copy to revision given by -r.
For each updated item a line will start with a character reporting the action taken. These characters have the following meaning:
A Added D Deleted U Updated C Conflict G Merged
A character in the first column signifies an update to the actual file, while updates to the file's properties are shown in the second column.
Conversion of the above usage example to VersionControl_SVN_Switch:
<?php
require_once 'VersionControl/SVN.php';
// Set up runtime options. Will be passed to all
// subclasses.
$switches = array('r' => '30');
$args = array('/path/to/working/copy');
try {
}
?>
$switches is an array containing one or more command line options defined by the following associative keys:
$switches = array(
'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
'N' => true|false,
// operate on single directory only
'non-recursive' => true|false,
// operate on single directory only
'q [quiet]' => true|false,
// print as little as possible
'diff3-cmd' => 'ARG',
// use ARG as merge command
'parents' => true|false,
// make intermediate directories
'username' => 'Subversion repository login
',
'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.