SvnAliases.

SvnStatusFile(ICakeContext, FilePath, SvnStatusSettings) Method

Summary

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

Syntax

public static IEnumerable<SvnStatusResult> SvnStatusFile(this ICakeContext context, FilePath filePath, SvnStatusSettings settings)

Examples

Gets Subversion status about file at filePath with specific settings.

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

     var localFileStatus = SvnFileStatus(@"C:\project\src\", svnStatusSettings);

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

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

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

Return Value

Type Description
IEnumerable<SvnStatusResult> The Subversion status. If no status about the file is available on Subversion null will be returned. For this ThrowOnError has to be set to false.