SvnAliases.

SvnCleanUp(ICakeContext, DirectoryPath, SvnCleanUpSettings) Method

Summary

Runs SVN cleanup on the given directory using given settings settings. SVN cleanup removes all working copy locks left behind by crashed clients.
Assembly
Cake.Svn.dll
Namespace
Cake.Svn
Containing Type
SvnAliases

Syntax

public static bool SvnCleanUp(this ICakeContext context, DirectoryPath directory, SvnCleanUpSettings settings)

Examples

Cleans a directory inside of a SVN working copy.

 SvnCleanUpSettings settings = new SvnCleanUpSettings
     {
         IncludeExternals = true
     };
     bool directoryCleaned = SvnCleanUp(@"C:\project\src\", settings);

     Verbose("Directory Cleaned: {0}", directoryCleaned);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The Cake context.
directory DirectoryPath The directory.
settings SvnCleanUpSettings Settings to use.

Return Value

Type Description
bool true if the command was successful. Otherwise false will be returned.