code: protected function getCommitLogs($fromReference, $toReference, $path)
      {
          $command = sprintf('fossil timeline -t ci -W 0 -n 0 before %s', ProcessExecutor::escape($toReference));
  
          if (0 !== $this->process->execute($command, $output, realpath($path))) {
              throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
          }
  
          $log = '';
          $match = '/\d\d:\d\d:\d\d\s+\[' . $toReference . '\]/';
  
          foreach ($this->process->splitLines($output) as $line) {
              if (preg_match($match, $line)) {
                  break;
              }
              $log .= $line;
          }
  
          return $log;
      }
docs: {@inheritDoc}