Warning: Can't synchronize with the repository (The 'repository_dir' has changed, a 'trac-admin resync' operation is needed.). Look in the Trac log for more information.

Error: Failed to load processor TracNav
No macro or processor named 'TracNav' found

cfsvn - version 00.00.01

Description

Use this tag to do  Subversion operations on  repositories or local  working copies.

Available actions for the cfsvn tag:

  • cfsvn action = "list"
  • cfsvn action = "commit"
  • cfsvn action = "createDirectory"
  • cfsvn action = "delete"
  • cfsvn action = "checkout"
  • cfsvn action = "history"
  • cfsvn action = "createRepository"

Note: this tag must be installed as an  Railo Extension using this extension provider:

http://preview.getrailo.org/ExtensionProvider.cfc?

Syntax

Generally working copy operations will have the attribute "targetdir", and repository operations will have at least the attribute "svnurl". Specify the return variable name by using the "variable" attribute. See the following for details

Usage

* cfsvn action = "list"

Returns a query with the directory information

<cfsvn action="list" svnUrl="http://svn.getrailo.org/svn/railotags/cfsvn/trunk/" variable="list"/>

* cfsvn action = "getFile"

Returns a query with the file information and content

<cfsvn action="getFile" svnUrl="http://svn.getrailo.org/svn/railotags/cfsvn/trunk/build/" resourcePath="build.xml" variable="file">

* cfsvn action = "commit"

Commits the data to the repository, or if targetdir is specified, performs a commit operation on the working copy target directory.

Commit to the repository:

<cfsvn action="commit" svnUrl="http://svn.getrailo.org/svn/railotags/cfsvn/tests/" resourcePath="testCommit.txt" message="commited test" data="some file data" />

Commit changes in a working copy:

<cfsvn action="commit" targetDir="/path/to/working/copy"/>

* cfsvn action = "createDirectory"

Creates a directory in the repository

<cfsvn action="createDirectory" svnUrl="http://svn.getrailo.org/svn/railotags/cfsvn/tests/" resourcePath="/testdir" message="commited uno" />

* cfsvn action = "delete"

Deletes a resource in the repository

<cfsvn action="delete" svnUrl="http://svn.getrailo.org/svn/railotags/cfsvn/tests/" resourcePath="/testdir/test.txt" message="deleted dos" />

* cfsvn action = "checkout"

Checks out a working copy to the specified targetDir

<cfsvn action="checkout" svnUrl="http://svn.getrailo.org/svn/railotags/cfsvn/" targetDir="/tmp/wc/" revision="-1" variable="results" />

* cfsvn action = "update"

Performs an update operation on a working copy targetDir

<cfsvn action="update" targetDir="/tmp/wc/" variable="results" />

* cfsvn action = "export"

Exports repository files to targetDir. These files are detached from the repository (no .svn metadata).

<cfsvn action="export" svnUrl="http://svn.getrailo.org/svn/railotags/cfsvn/src" targetDir="/tmp/export/" revision="-1" />

* cfsvn action = "history"

Returns a query with the resource history (TODO: add max return deal)

<cfsvn action="getHistory" svnUrl="http://svn.getrailo.org/svn/railotags/cfsvn/trunk/src" resourcePath="svn.cfc" revision="1" variable="history" />

Or

<cfsvn action="getHistory" svnUrl="http://svn.getrailo.org/svn/railotags/cfsvn/" revision="1" variable="history" />

* cfsvn action = "createRepository"

Create an FSFS Subversion repository at the specified location (TODO: switch to targetDir attribute, as that's more senseicle)

<cfsvn action="createRepository" svnUrl=" file:///tmp/delme" variable="results" overwrite="true" />