SvnAliases.

SvnUpdate(ICakeContext, DirectoryPath, SvnUpdateSettings) Method

Summary

Updates the Subversion directory tree defined by the supplied directoryPath with specific settings. The new revision is returned as the result of the operation.
Assembly
Cake.Svn.dll
Namespace
Cake.Svn
Containing Type
SvnAliases

Syntax

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

Examples

Update a Subversion directory tree to a specific revision.

 var svnUpdateSettings = new SvnUpdateSettings
     {
         Revision = 42;
     };

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

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

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

Return Value

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