SvnAliases.

GetSvnDirectoryInfo(ICakeContext, DirectoryPath) Method

Summary

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

Syntax

public static IEnumerable<SvnInfoResult> GetSvnDirectoryInfo(this ICakeContext context, DirectoryPath directoryPath)

Examples

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.

 var localDirectoryInfo = GetSvnDirectoryInfo(@"C:\project\src\");

     foreach(var svnInfoResult in localDirectoryInfo)
     {
         Verbose("Path: {0}", svnInfoResult.Path);
     }

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

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

Return Value

Type Description
IEnumerable<SvnInfoResult> A result list containing 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.