note 104986 added to function.svn-status
| From: | matthijs at fragfrog dot nl | Date: | Wed, 20 Jul 2011 20:03:57 +0000 |
| Subject: | note 104986 added to function.svn-status | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-181725@lists.php.net to get a copy of this message | ||
There seems to be an undocumented function svn_info (arguably the proper name for this
functionality) that does almost the same as svn_status, but ignores the second parameter.
Unfortunately, neither can directly be used to just retrieve the current revision of a working copy,
but a combination of svn_status and SVN_NON_RECURSIVE|SVN_ALL will work; simply perform the
following command:
<?php
svn_status(ROOT, SVN_NON_RECURSIVE|SVN_ALL);
?>
Where ROOT is of course the root of the working directory you wish to examine. One of the entries
will be that working directory, including its current status.
----
Server IP: 69.147.83.197
Probable Submitter: 94.212.239.33
----
Manual Page -- http://www.php.net/manual/en/function.svn-status.php
Edit -- https://master.php.net/note/edit/104986
Del: integrated -- https://master.php.net/note/delete/104986/integrated
Del: useless -- https://master.php.net/note/delete/104986/useless
Del: bad code -- https://master.php.net/note/delete/104986/bad+code
Del: spam -- https://master.php.net/note/delete/104986/spam
Del: non-english -- https://master.php.net/note/delete/104986/non-english
Del: in docs -- https://master.php.net/note/delete/104986/in+docs
Del: other reasons-- https://master.php.net/note/delete/104986
Reject -- https://master.php.net/note/reject/104986
Search -- https://master.php.net/manage/user-notes.php