SvnAliases.

IsFileInSvnWorkingCopy(ICakeContext, FilePath) Method

Summary

Check if the filePath was added to the Subversion working copy.
Assembly
Cake.Svn.dll
Namespace
Cake.Svn
Containing Type
SvnAliases

Syntax

public static bool IsFileInSvnWorkingCopy(this ICakeContext context, FilePath filePath)

Examples

Check if the filePath was added to the Subversion working copy.
 var isWorkingCopy = IsFileInSvnWorkingCopy(@"C:\project\src\newfolder\newfile.cs");

     Verbose("The file is a working copy: {0}", IsWorkingCopy);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

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

Return Value

Type Description
bool true if the file filePath was added to the Subversion working copy, even it doesn't exist on the remote repository. false if the file exist but the file was not added to the working copy.