Lines Matching defs:rev2
385 * Returns revisions around rev1 and rev2
389 * @param int $rev2 newest revision timestamp (0 looks up last revision)
391 * @return array with two arrays with revisions surrounding rev1 respectively rev2
393 public function getRevisionsAround($rev1, $rev2, $max = 50)
397 $rev2 = max($rev2, 0);
399 if ($rev2) {
400 if ($rev2 < $rev1) {
401 $rev = $rev2;
402 $rev2 = $rev1;
407 $rev2 = $this->currentRevision();
409 //collect revisions around rev2
410 [$revs2, $allRevs, $fp, $lines, $head, $tail] = $this->retrieveRevisionsAround($rev2, $max);
421 //revisions overlaps, reuse revisions around rev2