SvnAliases.

IsDirectoryInSvnWorkingCopy(ICakeContext, DirectoryPath) Method

Summary

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

Syntax

public static bool IsDirectoryInSvnWorkingCopy(this ICakeContext context, DirectoryPath directoryPath)

Examples

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

     Verbose("The directory is a working copy: {0}", isWorkingCopy);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

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

Return Value

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