TQ\Svn\Repository\Repository::renameFile PHP Method

renameFile() public method

Renames a file and commit the changes immediately
public renameFile ( string $fromPath, string $toPath, string | null $commitMsg = null, boolean $force = false, string | null $author = null ) : string
$fromPath string The source path
$toPath string The destination path
$commitMsg string | null The commit message used when committing the changes
$force boolean True to continue even though SVN reports a possible conflict
$author string | null The author
return string The current commit hash
    public function renameFile($fromPath, $toPath, $commitMsg = null, $force = false, $author = null)
    {
        $this->move($fromPath, $toPath, $force);
        if ($commitMsg === null) {
            $commitMsg = sprintf('%s renamed/moved file "%s" to "%s"', __CLASS__, $fromPath, $toPath);
        }
        $this->commit($commitMsg, array($fromPath, $toPath), $author);
        return $this->getCurrentCommit();
    }