예제 #1
0
파일: AbstractSvn.php 프로젝트: aburva1/vcs
 /**
  * Constructor.
  *
  * @param string           $url     Url of the repository
  * @param AdapterInterface $adapter adapter
  */
 public function __construct($url, AdapterInterface $adapter = null)
 {
     if (null === $adapter) {
         $adapter = new CliAdapter('/usr/bin/svn', new Cli(), new CliParser());
     }
     parent::__construct($url, $adapter);
     $this->setHead(new Reference('trunk'));
 }
예제 #2
0
파일: AbstractGit.php 프로젝트: aburva1/vcs
 public function setHead($reference)
 {
     parent::setHead($reference);
     // branch might have changed, so if we had a checkout it could be out of sync
     // setting this to false will get it back in sync
     $this->hasCheckout = false;
 }