VersionControl_SVN is a simple Object-Oriented interface for the svn command-line application that makes up the core of Subversion, a free/open-source version control system.
VersionControl_SVN's features include:
Multi-object factory design.
Fully documented source code
For example, what content management system (CMS) couldn't benefit from version control functionality? For many non-programmers, version control is a confusing subject to get a firm grasp on. With VersionControl_SVN, developers are now able to customize the interface to Subversion with the ease-of-use goals of their particular audience in mind. VersionControl_SVN lets you leverage the strengths of version control without burdening end-users with the learning curve of change control fundamentals.
Пример 60-1. Reading the content of a Subversion repository
|
Array ( [0] => Array ( [name] => docs [type] => D ) [1] => Array ( [name] => package.xml [type] => F ) [2] => Array ( [name] => SVN.php [type] => F ) [3] => Array ( [name] => SVN [type] => D ) [4] => Array ( [name] => tests [type] => D ) ) |
Note that in the above output, directories are flagged as type D, and files are flagged as type F.
Пример 60-2. Getting the list of current files in a repository
|
Пример 60-3. Recursively getting the list of current files in a repository
|
If you are interested in learning more about Subversion, see the following:
Version Control with Subversion - The primary reference manual for all things related to Subversion, from general use to repository administration.
Subversion Website - The official Subversion website offers a FAQ, mailing list, and of course, the Subversion source code. Also included are links to GUI Subversion applications.
Пред. | Начало | След. |
Tools and Utilities | Уровень выше | Validate |
HIVE: All information for read only. Please respect copyright! |