| public function getArchiveStream($commit, $prefix='repository/')␊ | 
| {␊ | 
| $revs = $this->_resolveSelector($commit);␊ | 
| // sanity: this should actually not happen, because the ␊ | 
| // sanity: this should actually not happen, because the␊ | 
| // revision is validated before already␊ | 
| if (count($revs) == 0) {␊ | 
| return new Pluf_HTTP_Response_NotFound();␊ | 
| }␊ | 
| return new IDF_Scm_Monotone_ZipRender($this->stdio, $revs[0]); ␊ | 
| return new IDF_Scm_Monotone_ZipRender($this->stdio, $revs[0]);␊ | 
| }␊ | 
| ␊ | 
| /**␊ | 
|  | 
| $cache = Pluf_Cache::factory();␊ | 
| $cachekey = 'mtn-plugin-certs-for-rev-' . $rev;␊ | 
| $certs = $cache->get($cachekey);␊ | 
| ␊ | 
| ␊ | 
| if ($certs === null) {␊ | 
| $out = $this->stdio->exec(array('certs', $rev));␊ | 
| ␊ | 
|  | 
| ␊ | 
| if ($stanza[0]['values'][0] != $file)␊ | 
| continue;␊ | 
| ␊ | 
| ␊ | 
| $file = $this->_fillFileEntry($stanza);␊ | 
| return (object) $file;␊ | 
| }␊ | 
|  | 
| $res['title'] = $split[0];␊ | 
| $res['full_message'] = (isset($split[1])) ? trim($split[1]) : '';␊ | 
| ␊ | 
| $res['branch'] = implode(', ', $certs['branch']);␊ | 
| $res['commit'] = $revs[0];␊ | 
| ␊ | 
| $res['changes'] = ($getdiff) ? $this->_getDiff($revs[0]) : '';␊ | 
| ␊ | 
| return (object) $res;␊ | 
|  | 
| __("revision %s has no branch cert - cannot start ".␊ | 
| "logging from this revision"), $rev␊ | 
| ));␊ | 
| } ␊ | 
| }␊ | 
| $initialBranches = $certs['branch'];␊ | 
| }␊ | 
| ␊ |