$sourceroot = $acts['rt'];
$conf['paths']['temp'] = Horde::getTempDir();
- $GLOBALS['VC'] = Horde_Vcs::factory($sourcerootopts['type'],
+ $GLOBALS['VC'] = Horde_Vcs::factory(String::ucfirst($sourcerootopts['type']),
array('sourceroot' => $sourcerootopts['location'],
'paths' => $conf['paths'],
'username' => isset($sourcerootopts['username']) ? $sourcerootopts['username'] : '',
* @author Anil Madhavapeddy <anil@recoil.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_cvs extends Horde_Vcs_rcs
+class Horde_Vcs_Cvs extends Horde_Vcs_Rcs
{
/**
* Does driver support deleted files?
*/
public function getAnnotateObject($filename)
{
- return new Horde_Vcs_Annotate_cvs($this, $filename);
+ return new Horde_Vcs_Annotate_Cvs($this, $filename);
}
/**
}
/**
- * Horde_Vcs_cvs annotate class.
+ * Horde_Vcs_Cvs annotate class.
*
* Anil Madhavapeddy, <anil@recoil.org>
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Annotate_cvs extends Horde_Vcs_Annotate
+class Horde_Vcs_Annotate_Cvs extends Horde_Vcs_Annotate
{
/**
* Temporary filename.
* @author Anil Madhavapeddy <anil@recoil.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Checkout_cvs extends Horde_Vcs_Checkout
+class Horde_Vcs_Checkout_Cvs extends Horde_Vcs_Checkout
{
/**
* Static function which returns a file pointing to the head of the
* requested revision of an RCS file.
*
- * @param Horde_Vcs_cvs $rep A repository object
+ * @param Horde_Vcs_Cvs $rep A repository object
* @param string $fullname Fully qualified pathname of the desired file
* to checkout
* @param string $rev Revision number to check out
}
/**
- * Horde_Vcs_cvs diff class.
+ * Horde_Vcs_Cvs diff class.
*
* Copyright Anil Madhavapeddy, <anil@recoil.org>
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Diff_cvs extends Horde_Vcs_Diff
+class Horde_Vcs_Diff_Cvs extends Horde_Vcs_Diff
{
/**
* Obtain the differences between two revisions of a file.
}
/**
- * Horde_Vcs_cvs directory class.
+ * Horde_Vcs_Cvs directory class.
*
* Copyright Anil Madhavapeddy, <anil@recoil.org>
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Directory_cvs extends Horde_Vcs_Directory
+class Horde_Vcs_Directory_Cvs extends Horde_Vcs_Directory
{
/**
* Creates a CVS Directory object to store information
/* If we want to merge the attic, add it in here. */
if ($showattic) {
- $atticDir = new Horde_Vcs_Directory_cvs($this->_rep, $this->_moduleName . '/Attic', $this);
+ $atticDir = new Horde_Vcs_Directory_Cvs($this->_rep, $this->_moduleName . '/Attic', $this);
if (!is_a($atticDir->browseDir($cache, $quicklog), 'PEAR_Error')) {
$this->_atticFiles = $atticDir->queryFileList();
$this->_mergedFiles = array_merge($this->_files, $this->_atticFiles);
}
/**
- * Horde_Vcs_cvs file class.
+ * Horde_Vcs_Cvs file class.
*
* Copyright Anil Madhavapeddy, <anil@recoil.org>
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_File_cvs extends Horde_Vcs_File
+class Horde_Vcs_File_Cvs extends Horde_Vcs_File
{
/**
* Create a repository file object, and give it information about
$fileOb = unserialize($this->cache->get($cacheId, $ctime));
$fileOb->setRepository($this->rep);
} else {
- $fileOb = new Horde_Vcs_File_cvs($this->rep, $filename . ',v', $this->cache, $this->quicklog);
+ $fileOb = new Horde_Vcs_File_Cvs($this->rep, $filename . ',v', $this->cache, $this->quicklog);
$fileOb->setRepository($this->rep);
if (is_a(($result = $fileOb->getBrowseInfo()), 'PEAR_Error')) {
return $result;
strcmp('----------------------------', $line)) {
$accum[] = $line;
} elseif (count($accum)) {
- // spawn a new Horde_Vcs_log object and add it to the logs
+ // spawn a new Horde_Vcs_Log object and add it to the logs
// hash
- $log = new Horde_Vcs_Log_cvs($this);
+ $log = new Horde_Vcs_Log_Cvs($this);
$err = $log->processLog($accum);
// TODO: error checks - avsm
$this->logs[$log->queryRevision()] = $log;
}
/**
- * Horde_Vcs_cvs log class.
+ * Horde_Vcs_cvs Log class.
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Log_cvs extends Horde_Vcs_Log
+class Horde_Vcs_Log_Cvs extends Horde_Vcs_Log
{
public function processLog($raw)
{
}
/**
- * Horde_Vcs_cvs Patchset class.
+ * Horde_Vcs_Cvs Patchset class.
*
* Copyright Anil Madhavapeddy, <anil@recoil.org>
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Patchset_cvs extends Horde_Vcs_Patchset
+class Horde_Vcs_Patchset_Cvs extends Horde_Vcs_Patchset
{
protected $_dir;
protected $_name;
}
-class Horde_Vcs_Revision_cvs extends Horde_Vcs_Revision_rcs {}
+class Horde_Vcs_Revision_Cvs extends Horde_Vcs_Revision_Rcs {}
<?php
/**
- * Horde_Vcs_git implementation.
+ * Horde_Vcs_Git implementation.
*
* Copyright 2008-2009 The Horde Project (http://www.horde.org/)
*
* @author Michael Slusarz <slusarz@horde.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_git extends Horde_Vcs
+class Horde_Vcs_Git extends Horde_Vcs
{
/**
* Constructor.
public function getCheckout($file, $rev)
{
if (!isset($this->_cache['co'])) {
- $this->_cache['co'] = new 'Horde_Vcs_Checkout_git';
+ $this->_cache['co'] = new 'Horde_Vcs_Checkout_Git';
}
return $this->_cache['co']->get($this, $file->queryModulePath(), $rev);
}
}
/**
- * Horde_Vcs_git annotate class.
+ * Horde_Vcs_Git annotate class.
*
* Chuck Hagenbuch <chuck@horde.org>
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Annotate_git extends Horde_Vcs_Annotate
+class Horde_Vcs_Annotate_Git extends Horde_Vcs_Annotate
{
public function __construct($rep, $file)
{
}
/**
- * Horde_Vcs_git checkout class.
+ * Horde_Vcs_Git checkout class.
*
* Chuck Hagenbuch <chuck@horde.org>
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Checkout_git extends Horde_Vcs_Checkout
+class Horde_Vcs_Checkout_Git extends Horde_Vcs_Checkout
{
/**
* Function which returns a file pointing to the head of the requested
}
/**
- * Horde_Vcs_git diff class.
+ * Horde_Vcs_Git diff class.
*
* Copyright Chuck Hagenbuch <chuck@horde.org>
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Diff_git extends Horde_Vcs_Diff
+class Horde_Vcs_Diff_Git extends Horde_Vcs_Diff
{
/**
* The available diff types.
}
/**
- * Horde_Vcs_git directory class.
+ * Horde_Vcs_Git directory class.
*
* Copyright Chuck Hagenbuch <chuck@horde.org>
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Directory_git extends Horde_Vcs_Directory
+class Horde_Vcs_Directory_Git extends Horde_Vcs_Directory
{
/**
* Tell the object to open and browse its current directory, and
}
/**
- * Horde_Vcs_git file class.
+ * Horde_Vcs_Git file class.
*
* Copyright Chuck Hagenbuch <chuck@horde.org>
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_File_git extends Horde_Vcs_File
+class Horde_Vcs_File_Git extends Horde_Vcs_File
{
/**
* Create a repository file object, and give it information about
$this->revs = explode("\n", trim($revisions));
foreach ($this->revs as $rev) {
- $this->logs[$rev] = Horde_Vcs_Log_git::factory($this->rep, $this, $rev);
+ $this->logs[$rev] = Horde_Vcs_Log_Git::factory($this->rep, $this, $rev);
if ($this->quicklog) {
break;
}
}
/**
- * Horde_Vcs_git log class.
+ * Horde_Vcs_Git log class.
*
* Chuck Hagenbuch <chuck@horde.org>
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Log_git {
+class Horde_Vcs_Log_Git {
public $err;
public $files = array();
$logOb = unserialize($rep->cache->get($cacheId, 0));
$logOb->setRepository($rep);
} else {
- $logOb = new Horde_Vcs_Log_git($rep, $file, $rev);
+ $logOb = new Horde_Vcs_Log_Git($rep, $file, $rev);
if ($rep->cache) {
$rep->cache->set($cacheId, serialize($logOb));
}
/**
- * Horde_Vcs_git Patchset class.
+ * Horde_Vcs_Git Patchset class.
*
* Copyright Chuck Hagenbuch <chuck@horde.org>
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Patchset_git extends Horde_Vcs_Patchset
+class Horde_Vcs_Patchset_Git extends Horde_Vcs_Patchset
{
/**
* Populate the object with information about the patchsets that
*/
function getPatchsets()
{
- $fileOb = new Horde_Vcs_File_git($this->_rep, $this->_file);
+ $fileOb = new Horde_Vcs_File_Git($this->_rep, $this->_file);
if (is_a(($result = $fileOb->getBrowseInfo()), 'PEAR_Error')) {
return $result;
}
}
-class Horde_Vcs_Revision_git extends Horde_Vcs_Revision
+class Horde_Vcs_Revision_Git extends Horde_Vcs_Revision
{
/**
* Validation function to ensure that a revision number is of the right
<?php
/**
- * Horde_Vcs_rcs implementation.
+ * Horde_Vcs_Rcs implementation.
*
* Copyright 2004-2007 Jeff Schwentner <jeffrey.schwentner@lmco.com>
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_rcs extends Horde_Vcs
+class Horde_Vcs_Rcs extends Horde_Vcs
{
/**
* Checks an RCS file in with a specified change log.
}
-class Horde_Vcs_Revision_rcs extends Horde_Vcs_Revision
+class Horde_Vcs_Revision_Rcs extends Horde_Vcs_Revision
{
/**
* Validation function to ensure that a revision number is of the right
require_once dirname(__FILE__) . '/rcs.php';
/**
- * Horde_Vcs_svn implementation.
+ * Horde_Vcs_Svn implementation.
*
* Copyright 2000-2009 The Horde Project (http://www.horde.org/)
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_svn extends Horde_Vcs
+class Horde_Vcs_Svn extends Horde_Vcs
{
/**
* SVN username.
}
/**
- * Horde_Vcs_svn annotate class.
+ * Horde_Vcs_Svn annotate class.
*
* Anil Madhavapeddy, <anil@recoil.org>
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Annotate_svn extends Horde_Vcs_Annotate
+class Horde_Vcs_Annotate_Svn extends Horde_Vcs_Annotate
{
/**
* TODO
}
/**
- * Horde_Vcs_svn checkout class.
+ * Horde_Vcs_Svn checkout class.
*
* Anil Madhavapeddy, <anil@recoil.org>
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Checkout_svn extends Horde_Vcs_Checkout
+class Horde_Vcs_Checkout_Svn extends Horde_Vcs_Checkout
{
/**
* Function which returns a file pointing to the head of the requested
}
/**
- * Horde_Vcs_svn diff class.
+ * Horde_Vcs_Svn diff class.
*
* Copyright Anil Madhavapeddy, <anil@recoil.org>
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Diff_svn extends Horde_Vcs_Diff
+class Horde_Vcs_Diff_Svn extends Horde_Vcs_Diff
{
/**
* Obtain the differences between two revisions of a file.
}
/**
- * Horde_Vcs_svn directory class.
+ * Horde_Vcs_Svn directory class.
*
* Copyright Anil Madhavapeddy, <anil@recoil.org>
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Directory_svn extends Horde_Vcs_Directory
+class Horde_Vcs_Directory_Svn extends Horde_Vcs_Directory
{
/**
* Tell the object to open and browse its current directory, and
}
/**
- * Horde_Vcs_svn file class.
+ * Horde_Vcs_Svn file class.
*
* Copyright Anil Madhavapeddy, <anil@recoil.org>
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_File_svn extends Horde_Vcs_File {
+class Horde_Vcs_File_Svn extends Horde_Vcs_File {
/**
* Create a repository file object, and give it information about
$fileOb = unserialize($this->cache->get($cacheId, 3600));
$fileOb->setRepository($rep);
} else {
- $fileOb = new Horde_Vcs_File_svn($rep, $this->filename, $this->cache, $this->quicklog);
+ $fileOb = new Horde_Vcs_File_Svn($rep, $this->filename, $this->cache, $this->quicklog);
$fileOb->setRepository($rep);
if (is_a(($result = $fileOb->getBrowseInfo()), 'PEAR_Error')) {
return $result;
}
while (!feof($pipe)) {
- $log = new Horde_Vcs_Log_svn($this->rep, $this);
+ $log = new Horde_Vcs_Log_Svn($this->rep, $this);
$err = $log->processLog($pipe);
if ($err) {
$rev = $log->queryRevision();
}
/**
- * Horde_Vcs_svn log class.
+ * Horde_Vcs_Svn log class.
*
* Anil Madhavapeddy, <anil@recoil.org>
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Log_svn extends Horde_Vcs_Log
+class Horde_Vcs_Log_Svn extends Horde_Vcs_Log
{
public $err;
public $files;
}
/**
- * Horde_Vcs_svn Patchset class.
+ * Horde_Vcs_Svn Patchset class.
*
* Copyright Anil Madhavapeddy, <anil@recoil.org>
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @package Horde_Vcs
*/
-class Horde_Vcs_Patchset_svn extends Horde_Vcs_Patchset
+class Horde_Vcs_Patchset_Svn extends Horde_Vcs_Patchset
{
/**
* Populate the object with information about the patchsets that
*/
function getPatchsets()
{
- $fileOb = new Horde_Vcs_File_svn($this->_rep, $this->_file);
+ $fileOb = new Horde_Vcs_File_Svn($this->_rep, $this->_file);
if (is_a(($result = $fileOb->getBrowseInfo()), 'PEAR_Error')) {
return $result;
}
}
-class Horde_Vcs_Revision_svn extends Horde_Vcs_Revision_rcs
+class Horde_Vcs_Revision_Svn extends Horde_Vcs_Revision_Rcs
{
/**
* Validation function to ensure that a revision number is of the right