Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

svk::command::status(3) [osx man page]

SVK::Command::Status(3) 				User Contributed Perl Documentation				   SVK::Command::Status(3)

NAME
SVK::Command::Status - Display the status of items in the checkout copy SYNOPSIS
status [PATH..] OPTIONS
-q [--quiet] : do not display files not under version control --no-ignore : disregard default and svn:ignore property ignores -N [--non-recursive] : do not descend recursively -v [--verbose] : print full revision information on every item DESCRIPTION
Show pending changes in the checkout copy. The first three columns in the output are each one character wide: First column, says if item was added, deleted, or otherwise changed: ' ' no modifications 'A' Added 'C' Conflicted 'D' Deleted 'I' Ignored 'M' Modified 'R' Replaced '?' item is not under version control '!' item is missing (removed by non-svk command) or incomplete '~' versioned item obstructed by some item of a different kind Second column, modifications of a file's or directory's properties: ' ' no modifications 'C' Conflicted 'M' Modified Third column, scheduled commit will contain addition-with-history ' ' no history scheduled with commit '+' history scheduled with commit Remaining fields are variable width and delimited by spaces: The working revision (with -v) The last committed revision and last committed author (with -v) The working copy path is always the final field, so it can include spaces. Example output: svk status M bar.c A + qax.c svk status --verbose wc M 53 2 sally wc/bar.c 53 51 harry wc/foo.c A + - ? ? wc/qax.c 53 43 harry wc/zig.c 53 20 sally wc perl v5.10.0 2008-08-04 SVK::Command::Status(3)

Check Out this Related Man Page

SVN_STATUS(3)								 1							     SVN_STATUS(3)

svn_status - Returns the status of working copy files and directories

SYNOPSIS
array svn_status (string $path, [int $flags]) DESCRIPTION
Returns the status of working copy files and directories, giving modifications, additions, deletions and other changes to items in the working copy. PARAMETERS
o $path - Local path to file or directory to retrieve status of. Note Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath(3) or dirname(__FILE__). o $flags - Any combination of SVN_NON_RECURSIVE, SVN_ALL (regardless of modification status), SVN_SHOW_UPDATES (entries will be added for items that are out-of-date), SVN_NO_IGNORE (disregard svn:ignore properties when scanning for new files) and SVN_IGNORE_EXTERNALS. RETURN VALUES
Returns a numerically indexed array of associative arrays detailing the status of items in the repository: Array ( [0] => Array ( // information on item ) [1] => ... ) The information on the item is an associative array that can contain the following keys: o $path - String path to file/directory of this entry on local filesystem. o $text_status - Status of item's text. Refer to status constants for possible values. o $repos_text_status - Status of item's text in repository. Only accurate if $update was set to TRUE. Refer to status constants for possible values. o $prop_status - Status of item's properties. Refer to status constants for possible values. o $repos_prop_status - Status of item's property in repository. Only accurate if $update was set to TRUE. Refer to status constants for possible val- ues. o $locked - Whether or not the item is locked. (Only set if TRUE.) o $copied - Whether or not the item was copied (scheduled for addition with history). (Only set if TRUE.) o $switched - Whether or not the item was switched using the switch command. (Only set if TRUE) These keys are only set if the item is versioned: o $name - Base name of item in repository. o $url - URL of item in repository. o $repos - Base URL of repository. o $revision - Integer revision of item in working copy. o $kind - Type of item, i.e. file or directory. Refer to type constants for possible values. o $schedule - Scheduled action for item, i.e. addition or deletion. Constants for these magic numbers are not available, they can be emulated by using: <?php if (!defined('svn_wc_schedule_normal')) { define('svn_wc_schedule_normal', 0); // nothing special define('svn_wc_schedule_add', 1); // item will be added define('svn_wc_schedule_delete', 2); // item will be deleted define('svn_wc_schedule_replace', 3); // item will be added and deleted } ?> o $deleted - Whether or not the item was deleted, but parent revision lags behind. (Only set if TRUE.) o $absent - Whether or not the item is absent, that is, Subversion knows that there should be something there but there isn't. (Only set if TRUE.) o $incomplete - Whether or not the entries file for a directory is incomplete. (Only set if TRUE.) o $cmt_date - Integer Unix timestamp of last commit date. (Unaffected by $update.) o $cmt_rev - Integer revision of last commit. (Unaffected by $update.) o $cmt_author - String author of last commit. (Unaffected by $update.) o $prop_time - Integer Unix timestamp of last up-to-date time for properties o $text_time - Integer Unix timestamp of last up-to-date time for text NOTES
Warning This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. EXAMPLES
Example #1 Basic example This example demonstrates a basic, theoretical usage of this function. <?php print_r(svn_status(realpath('wc'))); ?> The above example will output something similar to: Array ( [0] => Array ( [path] => /home/bob/wc/sandwich.txt [text_status] => 8 // item was modified [repos_text_status] => 1 // no information available, use update [prop_status] => 3 // no changes [repos_prop_status] => 1 // no information available, use update [name] => sandwich.txt [url] => http://www.example.com/svnroot/deli/trunk/sandwich.txt [repos] => http://www.example.com/svnroot/ [revision] => 123 [kind] => 1 // file [schedule] => 0 // no special actions scheduled [cmt_date] => 1165543135 [cmt_rev] => 120 [cmt_author] => Alice [prop_time] => 1180201728 [text_time] => 1180201729 ) ) SEE ALSO
svn_update(3), svn_log(3), SVN documentation for svn status. PHP Documentation Group SVN_STATUS(3)
Man Page