path = BSRegister::Get('repos')->fetchPath($repos); $this->repos = $repos; $this->_fetchRevision($rev); } // ################################################################### /** * Gets the desired XML revision information from the repository * * @param integer Desired revision */ private function _fetchRevision($desired) { $xml = BSXml::Parse(BSRegister::Get('lib')->run('info --xml ' . ($desired > 0 ? '-r' . intval($desired) . ' ' : '') . BSRegister::Get('lib')->arg($this->path), true)); $this->revision = intval($xml['info']['entry']['commit']['revision']); } } /*=====================================================================*\ || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>