SvnAliases.

SvnUpdate(ICakeContext, DirectoryPath) Method

Summary

Updates the Subversion directory tree defined by the supplied directoryPath. The new revision is returned as the result of the operation. To update to a specific revision the overload Cake.Svn.SvnAliases.SvnUpdate(Cake.Core.ICakeContext,Cake.Core.IO.DirectoryPath,Cake.Svn.Update.SvnUpdateSettings) can be used with the settings parameter.
Assembly
Cake.Svn.dll
Namespace
Cake.Svn
Containing Type
SvnAliases

Syntax

public static SvnUpdateResult SvnUpdate(this ICakeContext context, DirectoryPath directoryPath)

Examples

Update a Subversion directory tree.

 var updateResult = SvnUpate(@"C:\project\src\");

     Verbose("Revision: {0}", updateResult.Revision);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

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

Return Value

Type Description
SvnUpdateResult A result object containing the resulting revision of the directoryPath.