/** * Get the object of a revision * * @param string revision identifier of revision wanted * @return array array representation of the object */ public function get_revision($revision) { if (empty($this->_guid)) { return array(); } $filepath = $this->_generate_rcs_filename($this->_guid); // , must become . to work. Therefore this: str_replace(',', '.', $revision); // this seems to cause problems: //settype ($revision, "float"); $command = 'co -q -f -r' . escapeshellarg(trim($revision)) . " {$filepath} 2>/dev/null"; $this->exec($command); $data = $this->rcs_readfile($this->_guid); $mapper = new midcom_helper_xml_objectmapper(); $revision = $mapper->data2array($data); $command = "rm -f {$filepath}"; $this->exec($command); return $revision; }