Cake.Svn

Addin that extends the Cake build automation system with Subversion features using SharpSvn.

#addin nuget:?package=Cake.Svn&version=0.9.0

<package id="Cake.Svn" version="0.9.0" />

dotnet add package Cake.Svn --version 0.9.0

<PackageReference Include="Cake.Svn" Version="0.9.0" />

Aliases

Contains functionality for working with Subversion.

Add

Checkout

SvnCheckout(ICakeContext, Uri, DirectoryPath) Checkout a Subversion directory tree.
SvnCheckout(ICakeContext, Uri, DirectoryPath, SvnCheckoutSettings) Checkout a Subversion directory tree with specific settings.

CleanUp

SvnCleanUp(ICakeContext, DirectoryPath) Runs SVN cleanup on the given directory using default settings. SVN cleanup removes all working copy locks left behind by crashed clients.
SvnCleanUp(ICakeContext, DirectoryPath, SvnCleanUpSettings) Runs SVN cleanup on the given directory using given settings settings. SVN cleanup removes all working copy locks left behind by crashed clients.

Delete

SvnDeleteDirectory(ICakeContext, DirectoryPath) Delete a directory from Subversion.
SvnDeleteDirectory(ICakeContext, DirectoryPath, SvnDeleteSettings) Delete a directory from Subversion.
SvnDeleteFile(ICakeContext, FilePath) Delete a file from Subversion.
SvnDeleteFile(ICakeContext, FilePath, SvnDeleteSettings) Delete a file from Subversion.

Export

SvnExport(ICakeContext, Uri, DirectoryPath) Export a Subversion directory tree.
SvnExport(ICakeContext, Uri, DirectoryPath, SvnExportSettings) Export a Subversion directory tree with specific settings.

Info

GetSvnDirectoryInfo(ICakeContext, DirectoryPath) Gets Subversion information about the directory at directoryPath. The result list contains recursive information about the directoryPath (Infinity). To get information with another SvnDepth the overload Cake.Svn.SvnAliases.GetSvnDirectoryInfo(Cake.Core.ICakeContext,Cake.Core.IO.DirectoryPath,Cake.Svn.Info.SvnInfoSettings) can be used with changing the settings parameter.
GetSvnDirectoryInfo(ICakeContext, DirectoryPath, SvnInfoSettings) Gets Subversion information about the directory at directoryPath with specific settings. The result list contains recursive information about the directoryPath (Infinity). To get information with another SvnDepth change the SvnDepth on settings.
GetSvnFileInfo(ICakeContext, FilePath) Gets Subversion information about the file at filePath.
GetSvnFileInfo(ICakeContext, FilePath, SvnInfoSettings) Gets Subversion information about file at filePath with specific settings.
GetSvnRemoteInfo(ICakeContext, Uri) Gets Subversion information about the file or directory at repositoryUrl. The result list contains recursive information about the repositoryUrl (Infinity). To get information with another SvnDepth the overload Cake.Svn.SvnAliases.GetSvnDirectoryInfo(Cake.Core.ICakeContext,Cake.Core.IO.DirectoryPath,Cake.Svn.Info.SvnInfoSettings) can be used with changing the settings parameter.
GetSvnRemoteInfo(ICakeContext, Uri, SvnInfoSettings) Gets Subversion information about the file or directory at repositoryUrl with specific settings. The result list contains recursive information about the repositoryUrl (Infinity). To get information with another SvnDepth change the SvnDepth on settings.
IsDirectoryInSvnWorkingCopy(ICakeContext, DirectoryPath) Check if the directoryPath was added to the Subversion working copy.
IsFileInSvnWorkingCopy(ICakeContext, FilePath) Check if the filePath was added to the Subversion working copy.

Status

SvnStatusDirectory(ICakeContext, DirectoryPath) Gets Subversion status about the directory at directoryPath. The result list contains recursive status about the directoryPath (Infinity). To get status with another SvnDepth the overload Cake.Svn.SvnAliases.SvnStatusDirectory(Cake.Core.ICakeContext,Cake.Core.IO.DirectoryPath,Cake.Svn.Status.SvnStatusSettings) can be used with chaning the settings parameter.
SvnStatusDirectory(ICakeContext, DirectoryPath, SvnStatusSettings) Gets Subversion status about the directory at directoryPath with specific settings. The result list contains recursive status about the directoryPath (Infinity). To get status with another SvnDepth change the SvnDepth on settings.
SvnStatusFile(ICakeContext, FilePath) Gets Subversion status about the file at filePath.
SvnStatusFile(ICakeContext, FilePath, SvnStatusSettings) Gets Subversion status about file at filePath with specific settings.

Update

SvnUpdate(ICakeContext, DirectoryPath) Updates the Subversion directory tree defined by the supplied directoryPath. The new revision is returned as the result of the operation. To update to a specific revision the overload Cake.Svn.SvnAliases.SvnUpdate(Cake.Core.ICakeContext,Cake.Core.IO.DirectoryPath,Cake.Svn.Update.SvnUpdateSettings) can be used with the settings parameter.
SvnUpdate(ICakeContext, DirectoryPath, SvnUpdateSettings) Updates the Subversion directory tree defined by the supplied directoryPath with specific settings. The new revision is returned as the result of the operation.
SvnUpdate(ICakeContext, FilePath) Update an individual file at filePath in a Subversion tree.
SvnUpdate(ICakeContext, FilePath, SvnUpdateSettings) Update an individual file at filePath in a Subversion tree with specific settings.

Vacuum

SvnVacuum(ICakeContext, DirectoryPath) Runs SVN vacuum on the given directory using default settings. SVN vacuum removes all ignored and unversioned files and directories. This does not revert any modifications to files within the working copy.
SvnVacuum(ICakeContext, DirectoryPath, SvnVacuumSettings) Runs SVN vacuum on the given directory using given settings settings. SVN vacuum removes all ignored and unversioned files and directories. This does not revert any modifications to files within the working copy.