svn module provides functions that manupilate javasvn API. See 'Version Control with Subversion', for information about subversion command line interface.
Add files, directories, or symbolic links to your working copy and schedule them for addition to the repository.
Argument Type file String, java.io.File, or Array/Collection/Generator of those types param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String force boolean non-recursive boolean auto-props boolean no-auto-props boolean
svn_add("build.xml", {"username"=>"foo", "password"=>"bar"})
Output the contents of the specified files or URLs.
Argument Type target String, java.io.File, java.net.URL, or Array/Collection/Generator of those types param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String revision String, java.util.Data, long expand-keywords boolean
svn_cat("build.xml", {"username"=>"foo", "password"=>"bar"})
Check out a working copy from a repository.
Argument Type url String, java.net.URL path String, java.io.File param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String non-recursive boolean revision String, java.util.Data, long
svn_checkout("http://opensvn.csie.org/Pnuts/")
Recursively clean up the working copy, removing locks resuming unfinished operations.
Argument Type file String, java.io.File, or Array/Collection/Generator of those types param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String
svn_cleanup("src")
Send changes from your working copy to the repository.
Argument Type target String, java.io.File, java.net.URL, or Array/Collection/Generator of those types param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String force boolean no-unlock boolean non-recursive boolean
svn_commit("README.txt")
Create a local repository.
Argument Type dir String, java.io.File
svn_create("my_module")
Copy a file in a working copy or in the repository. src and dst can each be either a working copy (WC) path or URL.
Argument Type src String, java.io.File, or java.net.URL dest String, java.io.File, or java.net.URL param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String force boolean revision String, java.util.Date, long message String
svn_copy("foo/license.txt", "bar/license.txt")
This command moves a file or directory in your working copy or in the repository.
Argument Type src String, java.io.File, or java.net.URL dest String, java.io.File, or java.net.URL param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String force boolean revision String, java.util.Date, long message String
svn_move("foo/license.txt", "license.txt")
Delete an item from a working copy or the repository.
Argument Type target String, java.io.File, java.net.URL, or Array/Collection/Generator of those types param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String force boolean dryRun boolean
svn_delete("experiment")
Display the differences between two paths.
Argument Type file1 String, java.io.File, or java.net.URL file2 String, java.io.File, or java.net.URL rN String, java.util.Date, or long rM String, java.util.Date, or long param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String
svn_diff("README.txt")
Apply the differences between two sources to a working copy path.
Argument Type file1 String, java.io.File, java.net.URL rN String, java.util.Data, or long file2 String, java.io.File, java.net.URL rM String, java.util.Data, or long path String or java.io.File param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String force boolean non-recursive boolean ignore-ancestry boolean dry-run boolean
svn_merge("http://svn.red-bean.com/repos/branches/my-branch", 250, "HEAD")
Export a clean directory tree.
Argument Type target String, java.io.File, java.net.URL, or Array/Collection/Generator of those types path String or java.io.File param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String force boolean non-recursive boolean native-eol boolean
svn_export("top", "exported")
Commit an unversioned file or tree into the repository.
Argument Type target String or java.net.URL path String or java.io.File param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String non-recursive boolean no-ignore boolean message String
svn_import("http://localhost/repository/", "src")
Display information about a local or remote item.
Argument Type target String, java.io.File, java.net.URL, or Array/Collection/Generator of those types param java.util.Map handler Unary function
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String recursive boolean revision String, java.util.Date, long
for (i:svn_info(".")) {
println(i.file,",",i.committedDate,",",i.author)
}
List directory entries in the repository.
Argument Type target String, java.io.File, java.net.URL, or Array/Collection/Generator of those types param java.util.Map handler Unary function
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String recursive boolean revision String, java.util.Data, long
for (i:svn_list(".")) {
println(i.revision, ",", i.path, ",", i.date, ",", i.author)
}
Lock working copy paths or URLs in the repository, so that no other user can commit changes to them.
Argument Type target String, java.io.File, java.net.URL, or Array/Collection/Generator of those types param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String force boolean message String
svn_lock(".")
Display commit log messages.
Argument Type target String, java.io.File, java.net.URL, or Array/Collection/Generator of those types param java.util.Map handler Unary function
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String revision String, java.util.Date, long
> for (x:svn_log("test")) println(x.revision, ", ", x.author, ",", x.date)
3, tomatsu,Fri Apr 07 18:12:24 JST 2006
2, tomatsu,Fri Apr 07 18:12:15 JST 2006
1, tomatsu,Wed Apr 05 13:39:41 JST 2006
0, null,Wed Apr 05 12:12:55 JST 2006
> svn_log("build.xml", {"xml"=>true})
<?xml version="1.0" encoding="utf-8"?>
<log>
<logentry
revision="2">
<author>tomatsu</author>
<date>2006-04-07T09:12:15.441000Z</date>
<paths>
<path
action="M">/build.xml</path>
</paths>
<msg></msg>
</logentry>
<logentry
revision="1">
<author>tomatsu</author>
<date>2006-04-05T04:39:41.128000Z</date>
<paths>
<path
action="A">/build.xml</path>
</paths>
<msg></msg>
</logentry>
</log>
null
This removes properties from files, directories, or revisions.
Argument Type target String, java.io.File, java.net.URL, or Array/Collection/Generator of those types param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String revprop boolean recursive boolean force boolean revision String, java.util.Date, long
svn_propdel("pnuts.bat")
Print the value of a property on files, directories, or revisions.
Argument Type target String, java.io.File, java.net.URL, or Array/Collection/Generator of those types param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String revprop boolean revprop boolean strict boolean recursive boolean revision String, java.util.Date, long
svn_propget("pnuts.bat")
List all properties on files, directories, or revisions.
Argument Type target String, java.io.File, java.net.URL, or Array/Collection/Generator of those types param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String revprop boolean recursive boolean verbose boolean revision String, java.util.Date, long
svn_proplist("pnuts.bat")
Set propname to value on files, directories, or revisions.
Argument Type target String, java.io.File, java.net.URL, or Array/Collection/Generator of those types param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String force boolean recursive boolean revprop boolean
Reverts any local changes to a file or directory and resolves any conflicted states.
Argument Type target String, java.io.File, or Array/Collection/Generator of those types param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String recursive boolean
svn_revert("build.xml")
Print the status of working copy files and directories.
Argument Type target String, java.io.File, java.net.URL, or Array/Collection/Generator of those types param java.util.Map handler Unary function
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String
for (i:svn_status(".")) {
if (string(i.contentsStatus) == "modified") println(i.file)
}
Update working copy to a different URL.
Argument Type url, fromURL, toURL String or java.net.URL path String, java.io.File, or Array/Collection/Generator of those types param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String revision String non-recursive boolean relocate boolean
svn_switch("http://svn.red-bean.com/repos/branches/vendors-with-fix", ".")
Unlock working copy paths or URLs.
Argument Type target String, java.io.File, java.net.URL, or Array/Collection/Generator of those types param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String force boolean
svn_unlock(".")
svn_update() brings changes from the repository into your working copy.
Argument Type target String, java.io.File, or Array/Collection/Generator of those types param java.util.Map
Options to the command can be specified in param.
Option Type username String password String no-auth-cache boolean config-dir String revision String, java.util.Date, long non-recursive boolean
svn_update(".")