SvnAliases.

SvnUpdate(ICakeContext, FilePath, SvnUpdateSettings) Method

Summary

Update an individual file at filePath in a Subversion tree with specific settings.
Assembly
Cake.Svn.dll
Namespace
Cake.Svn
Containing Type
SvnAliases

Syntax

public static SvnUpdateResult SvnUpdate(this ICakeContext context, FilePath filePath, SvnUpdateSettings settings)

Examples

Updates an individual file to a specific revision.

 var settings = new SvnUpdateSettings
     {
         Revision = 1138;
     };

     var updateResult = SvnUpdate(@"C:\project\src\", settings);

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

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

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

Return Value

Type Description
SvnUpdateResult The resulting revision of the file.