SvnAliases.

SvnStatusDirectory(ICakeContext, DirectoryPath, SvnStatusSettings) Method

Summary

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

Syntax

public static IEnumerable<SvnStatusResult> SvnStatusDirectory(this ICakeContext context, DirectoryPath directoryPath, SvnStatusSettings settings)

Examples

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.

 var svnStatusSettings = new SvnStatusSettings
     {
         Depth = SvnDepth.Unknown;
     };

     var localDirectoryStatus = SvnStatusDirectory(@"C:\project\src\", svnStatusSettings);

     foreach(var svnStatusResult in localDirectoryStatus)
     {
         Verbose("Path: {0}", svnStatusResult.Path);
     }

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The Cake context.
directoryPath DirectoryPath The directory.
settings SvnStatusSettings The settings.

Return Value

Type Description
IEnumerable<SvnStatusResult> A result list containing recursive status about the directoryPath (Infinity). To get status with another SvnDepth change the SvnDepth on settings