perldoc > SVN::Ra

📛 NAME

SVN::Ra - Subversion remote access functions

🚀 Quick Reference

Use CaseCommandDescription
Open a session to a repositorySVN::Ra->new('url')Create an RA object with the given URL, using default auth and config.
Get the latest revision number$ra->get_latest_revnumReturn HEAD revision number of the repository.
Get log history for a path$ra->get_log($paths, $start, $end, $limit, $discover, $strict, \&callback)Invoke callback for each revision in range, with change info.
Retrieve file contents$ra->get_file($path, $revnum, $fh)Write file contents to filehandle, return properties.
Get directory listing$ra->get_dir($path, $revnum)Return hash of directory entries, properties, and fetched revision.
Commit changes$ra->get_commit_editor($logmsg, $callback, $baton, $lock_tokens, $keep_locks)Return an editor object for committing a new revision.
Update working copy$ra->do_update($revnum, $target, $recurse, $editor)Return a Reporter to describe WC, then Subversion drives editor.
Check path type$ra->check_path($path, $revnum)Return node kind constant (none, file, dir, unknown).
Get repository root$ra->get_repos_rootReturn root URL of the repository.
Get repository UUID$ra->get_uuidReturn UUID string of the repository.

📋 SYNOPSIS

use SVN::Core;
use SVN::Ra;

my $ra = SVN::Ra->new('file:///tmp/svntest');
print $ra->get_latest_revnum;

📖 DESCRIPTION

SVN::Ra wraps the object-oriented "svn_ra_plugin_t" functions, providing access to a Subversion repository through a URL, using whichever repository access module is appropriate.

🔧 SVN::Ra->new(...)

The constructor creates an RA object and calls "open" for it. Its parameters are either a hash of options or a single value containing the URL of the repository. Valid options are:

The following examples will both do the same thing, with all the optional arguments taking their defaults:

my $ra = SVN::Ra->new('file:///tmp/repos');
my $ra = SVN::Ra->new(url => 'file:///tmp/repos');

🛠️ METHODS

Please consult the svn_ra.h section in the Subversion API. Member functions of "svn_ra_plugin_t" can be called as methods of SVN::Ra objects, with the "session_baton" and "pool" arguments omitted.

📁 SVN::Ra::Reporter

The SVN::Ra methods do_diff, do_status, do_switch, and do_update all return a SVN::Ra::Reporter object, which can be used to describe the working copy (or other available data) which the client has. Subversion uses this to figure out what new information should be provided through a tree delta editor. Objects of this class are wrappers around underlying "svn_ra_reporter2_t" objects and their associated baton.

📌 Reporter Methods

📞 SVN::Ra::Callbacks

This is the wrapper class for "svn_ra_callback_t". To supply custom callbacks to SVN::Ra, subclass this class and override the member functions.

✍️ AUTHORS

Chia-liang Kao <clkao AT clkao.org>

📄 COPYRIGHT

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
SVN::Ra
📛 NAME 🚀 Quick Reference 📋 SYNOPSIS 📖 DESCRIPTION
🔧 SVN::Ra->new(...) 🛠️ METHODS 📁 SVN::Ra::Reporter 📞 SVN::Ra::Callbacks
✍️ AUTHORS 📄 COPYRIGHT

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-30 20:44 @216.73.217.152
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^