SvnAliases.

GetSvnFileInfo(ICakeContext, FilePath, SvnInfoSettings) Method

Summary

Gets Subversion information about file at filePath with specific settings.
Assembly
Cake.Svn.dll
Namespace
Cake.Svn
Containing Type
SvnAliases

Syntax

public static SvnInfoResult GetSvnFileInfo(this ICakeContext context, FilePath filePath, SvnInfoSettings settings)

Examples

Gets Subversion information about file at filePath with specific settings.

 var svnInfoSettings = new SvnInfoSettings
     {
         Depth = SvnDepth.Unknown;
     };

     var localFileInfo = GetSvnFileInfo(@"C:\project\src\", svnInfoSettings);

     Verbose("Path: {0}", localFileInfo.Path);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The Cake context.
filePath FilePath The file.
settings SvnInfoSettings The settings.

Return Value

Type Description
SvnInfoResult The Subversion information. If no information about the file is available on Subversion null will be returned. For this ThrowOnError has to be set to false.