TQ\Svn\Repository\Repository::showFile PHP Method

showFile() public method

Returns the content of a file at a given version
public showFile ( string $file, string $ref = 'HEAD' ) : string
$file string The path to the file
$ref string The version ref
return string
    public function showFile($file, $ref = 'HEAD')
    {
        /** @var $result CallResult */
        $result = $this->getSvn()->{'cat'}($this->getRepositoryPath(), array('--revision' => $ref, $file));
        $result->assertSuccess(sprintf('Cannot show "%s" at "%s" from "%s"', $file, $ref, $this->getRepositoryPath()));
        return $result->getStdOut();
    }