/** * 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')); }
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; }