SvnAliases.

SvnVacuum(ICakeContext, DirectoryPath, SvnVacuumSettings) Method

Summary

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.
Assembly
Cake.Svn.dll
Namespace
Cake.Svn
Containing Type
SvnAliases

Syntax

public static bool SvnVacuum(this ICakeContext context, DirectoryPath directory, SvnVacuumSettings settings)

Examples

Vacuums a directory inside of a SVN working copy.

 SvnVacuumSettings settings = new SvnVacuumSettings
     {
         IncludeExternals = true
     };
     bool vacuumed = SvnVacuum(@"C:\project\src\");

     Verbose("Directory Vacuumed: {0}", vacuumed);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

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

Return Value

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