Lines Matching refs:recordedRev

628         $recordedRev = $this->lastRevision(); // false when there is no changelog
631 if ($fileRev === $recordedRev) {
632 $this->currentRevision = $recordedRev;
633 return $recordedRev === false ? false : $this->getRevisionInfo($recordedRev);
639 $revInfo = $this->synthesizeExternalDeletion($recordedRev);
641 $recordedRev === false ||
642 $this->getRevisionInfo($recordedRev, false)['type'] == DOKU_CHANGE_TYPE_DELETE
645 $revInfo = $this->synthesizeExternalCreate($filename, $fileRev, $recordedRev);
648 $revInfo = $this->synthesizeExternalEdit($filename, $fileRev, $recordedRev);
652 $this->currentRevision = $recordedRev;
653 return $this->getRevisionInfo($recordedRev);
667 * @param int $recordedRev date of the newest recorded changelog revision
671 protected function synthesizeExternalDeletion($recordedRev) argument
675 if ($this->getRevisionInfo($recordedRev, false)['type'] == DOKU_CHANGE_TYPE_DELETE) {
681 'date' => max($recordedRev + 1, time() - 1),
688 'sizechange' => -$this->lastRevisionSize($recordedRev),
700 * @param int $recordedRev date of the newest recorded changelog revision
704 protected function synthesizeExternalEdit($filename, $fileRev, $recordedRev) argument
711 if ($this->currentContentMatchesRevision($recordedRev)) {
712 @touch($filename, $recordedRev);
717 if ($fileRev > $recordedRev) {
724 … . 'Last revision: ' . $recordedRev . ' ' . dformat($recordedRev, "%Y-%m-%d %H:%M:%S");
731 'date' => $timestamp ?: $recordedRev + 1,
738 'sizechange' => filesize($filename) - $this->lastRevisionSize($recordedRev),
751 …* @param int|false $recordedRev date of the newest recorded changelog revision, or false when none
754 protected function synthesizeExternalCreate($filename, $fileRev, $recordedRev) argument
761 $datedByFile = $recordedRev === false || $fileRev > $recordedRev;
767 'date' => $timestamp ?: $recordedRev + 1,
975 * @param int $recordedRev timestamp of the last recorded revision
978 protected function lastRevisionSize($recordedRev) argument
980 return io_getSizeFile($this->getFilename($recordedRev));