Lines Matching refs:rev
43 * @param string|int $rev empty string or revision timestamp
46 abstract protected function getFilename($rev = ''); argument
58 * @param int $rev timestamp of current page
61 public function isCurrentRevision($rev) argument
63 return $rev == $this->currentRevision();
69 * @param int $rev revision timestamp
72 public function isLastRevision($rev = null) argument
74 return $rev === $this->lastRevision();
132 * @param int $rev revision timestamp
150 public function getRevisionInfo($rev, $retrieveCurrentRevInfo = true) argument
152 $rev = max(0, $rev);
153 if (!$rev) return false;
161 if (isset($this->cache[$this->id][$rev])) {
162 return $this->cache[$this->id][$rev];
166 [$fp, $lines] = $this->readloglines($rev);
177 return $this->cache[$this->id][$rev] ?? false;
315 * @param int $rev revision timestamp used as start date
323 public function getRelativeRevision($rev, $direction) argument
325 $rev = max($rev, 0);
329 if (!$direction || ($direction > 0 && $this->isCurrentRevision($rev))) {
334 [$fp, $lines, $head, $tail, $eof] = $this->readloglines($rev);
357 … if (($direction > 0 && $info['date'] > $rev) || ($direction < 0 && $info['date'] < $rev)) {
368 && ($info['date'] == $rev || ($revCounter > 0 && !$relativeRev))
401 $rev = $rev2;
403 $rev1 = $rev;
462 } elseif ($rev = $this->getRelativeRevision($date_at + 1, -1)) {
464 return $rev;
477 * @param int $rev revision timestamp
489 protected function retrieveRevisionsAround($rev, $max) argument
496 [$fp, $lines, $startHead, $startTail, $eof] = $this->readloglines($rev);
507 if ($info['date'] >= $rev) {
691 * @param int $rev
693 public function traceCurrentRevision($rev) argument
695 if ($rev > $this->lastRevision()) {
696 $rev = $this->currentRevision();
698 return $rev;