native::Fs(3)
πΈ NAME πΈ
Okay bestie, welcome to native::Fs(3) β it's from the User Contributed Perl Documentation corner of the universe, and it's literally the page for SVN::Fs β Subversion filesystem functions. π
β¨ DESCRIPTION β¨
SVN::Fs wraps the functions in svn_fs.h. The actual namespace for filesystem objects is _p_svn_fs_t. No cap, that's the whole vibe check. π«Ά
π§ FUNCTIONS π§
Here's the full roster, bestie β no names skipped, no tea left out. π
SVN::Fs::berkeley_logfiles($path, $only_unused)β listed here, no extra blurb on this page.SVN::Fs::berkeley_recover($path)β listed here, no extra blurb on this page.SVN::Fs::check_related($id1, $id2)β listed here, no extra blurb on this page.SVN::Fs::compare_ids($id1, $id2)β listed here, no extra blurb on this page.SVN::Fs::contents_changed($root1, $path1, $root2, $path2)β listed here, no extra blurb on this page.SVN::Fs::create($path, $config)β listed here, no extra blurb on this page.SVN::Fs::delete_fs($path)β listed here, no extra blurb on this page.SVN::Fs::deltify_revision($fs, $rev)β listed here, no extra blurb on this page.SVN::Fs::get_file_delta_stream($source_root, $source_path, $target_root, $target_path)β listed here, no extra blurb on this page.SVN::Fs::hotcopy($src_path, $dest_path, $clean)β listed here, no extra blurb on this page.SVN::Fs::initialize($pool)β listed here, no extra blurb on this page.SVN::Fs::merge($source_root, $source_path, $target_root, $target_path, $ancestor_root, $ancestor_path)β listed here, no extra blurb on this page.SVN::Fs::open($path, $config)β listed here, no extra blurb on this page.SVN::Fs::path($fs)β listed here, no extra blurb on this page.SVN::Fs::print_modules($s)β okay so this one has a big honest TODO attached: doesn't work, segfaults if$sis null, doesn't do anything if its an empty string. πSVN::Fs::props_changed($root1, $path1, $root2, $path2)β see alsoSVN::Fs::contents_changed.SVN::Fs::purge_txn($fs, $txn_id)β cleanup the transaction$txn_id, removing it completely from the filesystem$fs.SVN::Fs::set_warning_func($fs, $code, $baton)β listed here, no extra blurb on this page.SVN::Fs::unparse_id($id)β return a string containing the unparsed form of the node or node revision id$id, which must be a_p_svn_fs_id_tobject. Also: TODO β why isn't this a method of that object? πSVN::Fs::version()β TODO β what can we do with the_p_svn_version_tvalue returned?SVN::Fs::create_access($username)β return a new_p_svn_fs_access_tobject representing$username.$usernameis presumed to have been authenticated by the caller. π
π¦ _p_svn_fs_t π¦
$fs->begin_txn($rev)β creates a new transaction in the repository, and returns a_p_svn_fs_txn_tobject representing it. The new transaction's base revision will be$rev, which should be a number.$fs->change_rev_propβ no extra description on this page, just vibing in the list.$fs->generate_lock_token()β generate a unique lock-token using$fs. TODO β translate this to apply to Perl: This can be used in to populatelock->tokenbefore callingsvn_fs_attach_lock(). π$fs->get_access()β the filesystem's current access context, as a_p_svn_fs_access_tobject. Returns undef if no access context has been set with theset_access()method.$fs->get_lockβ no extra description on this page.$fs->get_locksβ no extra description on this page.$fs->get_uuid()β the UUID associated with$fs.$fs->list_transactions()β a reference to an array of all currently active transactions in the filesystem. Each one is a string containing the transaction's ID, suitable for passing to$fs->open_txn().$fs->lockβ no extra description on this page.$fs->open_txn($name)β get a transaction in the repository by name. Returns a_p_svn_fs_txn_tobject.$fs->revision_prop($rev, $propname)β the value of revision property$propnamein revision$rev.$fs->revision_proplist($rev)β a hashref containing the names and values of all revision properties from revision$rev.$fs->revision_rootβ no extra description on this page.$fs->set_access($access)β associate an access context with an open filesystem. This method can be run multiple times on the same open filesystem, in order to change the filesystem access context for different filesystem operations.$accessshould be a_p_svn_fs_access_tobject, or undef to disassociate the current access context from the filesystem.$fs->set_uuid($uuid)β associate$uuidwith$fs.$fs->unlockβ no extra description on this page.$fs->youngest_rev()β return the number of the youngest revision in the filesystem. The oldest revision in any filesystem is numbered zero.
π _p_svn_fs_root_t π
$root->apply_textβ no extra description on this page.$root->apply_textdeltaβ no extra description on this page.$root->change_node_prop($path, $propname, $value)β no extra description on this page.$root->check_path($path)β kind of node at$path. A number which matches one of these constants:$SVN::Node::none,$SVN::Node::file,$SVN::Node::dir,$SVN::Node::unknown.$root->close_rootβ no extra description on this page.$root->closest_copyβ no extra description on this page.$root->copied_fromβ no extra description on this page.$root->copyβ no extra description on this page.$root->deleteβ no extra description on this page.$root->dir_entriesβ no extra description on this page.$root->file_contentsβ no extra description on this page.$root->file_lengthβ no extra description on this page.$root->file_md5_checksumβ no extra description on this page.$root->fs()β the filesystem to which$rootbelongs, as a_p_svn_fs_tobject.$root->is_dir($path)β true if there is a node at$pathwhich is a directory.$root->is_file($path)β true if there is a node at$pathwhich is a file.$root->is_revision_root()β true if the root comes from a revision (i.e., the contents has already been committed).$root->is_txn_root()β true if the root comes from a transaction.$root->make_dirβ no extra description on this page.$root->make_fileβ no extra description on this page.$root->node_created_path($path)β no extra description on this page.$root->node_created_rev($path)β no extra description on this page.$root->node_history($path)β TODO β_p_svn_fs_history_t.$root->node_id($path)β no extra description on this page.$root->node_prop($path, $propname)β no extra description on this page.$root->node_proplist($path)β no extra description on this page.$root->paths_changed()β a reference to a hash indicating what changes are made in the root. The keys are the paths of the files changed, starting with/to indicate the top-level directory of the repository. The values are_p_svn_fs_path_change_tobjects which contain information about what kind of changes are made.$root->revision_linkβ no extra description on this page.$root->revision_root_revisionβ revision number of the revision the root comes from. For transaction roots, returns$SVN::Core::INVALID_REVNUM.
π _p_svn_fs_history_t π
$history->location()β in list context, a list of two items: the path to the node whose history this is, and the revision number in which it exists. In scalar context returns only the revision number.$history->prev($cross_copies)β no extra description on this page.
π _p_svn_fs_txn_t π
$txn->abort()β abort the transaction. Any changes made in$txnare discarded, and the filesystem is left unchanged.
Note: This function first sets the state of$txnto 'dead', and then attempts to purge it and any related data from the filesystem. If some part of the cleanup process fails,$txnand some portion of its data may remain in the database after this function returns. Use$fs->purge_txn()to retry the transaction cleanup.
$txn->base_revision()β the transaction's base revision number.$txn->change_prop($name, $value)β add, change, or remove a property from the transaction. If$valueisundefthen the property$nameis removed, if it exists. Otherwise the property$nameis set to the new value.$txn->commitβ no extra description on this page.$txn->name()β full name of the revision, in the same format as can be passed to$fs->open_txn().$txn->prop($name)β the value of the transaction's$nameproperty.$txn->proplist()β a reference to a hash containing all the transaction's properties, keyed by name.$txn->root()β the root directory of the transaction, as a_p_svn_fs_root_tobject.
πΈ _p_svn_fs_access_t πΈ
π SYNOPSIS π
my $access = SVN::Fs::create_access($username);
my $access = $fs->get_access;
$fs->set_access($access);
my $username = $access->get_username;
$access->add_lock_token($token);
π METHODS π
$access->add_lock_token($token)β push a lock-token into the access context. The context remembers all tokens it receives, and makes them available to fs functions.$access->get_usernameβ the username represented by the access context.
π¦ svn_fs_dirent_t π¦
An object representing a directory entry. Values of this type are returned as the values in the hash returned by $root->dir_entries(). They are like svn_dirent_t objects, but have less information.
$dirent->id()β TODO.$dirent->kind()β node kind. A number which matches one of these constants:$SVN::Node::none,$SVN::Node::file,$SVN::Node::dir,$SVN::Node::unknown.$dirent->name()β the filename of the directory entry.
β _p_svn_fs_path_change_t β
$change->change_kind()β the type of change made. A number which matches one of the following:$SVN::Fs::PathChange::modifyβ content at path modified.$SVN::Fs::PathChange::addβ path added in transaction.$SVN::Fs::PathChange::deleteβ path removed in transaction.$SVN::Fs::PathChange::replaceβ path removed and re-added in transaction.$SVN::Fs::PathChange::resetβ ignore all previous change items for path (internal-use only).
$change->node_rev_id()β node revision id of changed path. A_p_svn_fs_id_tobject.$change->prop_mod()β true if the properties were modified.$change->text_mod()β true if the text (content) was modified.
π COPYRIGHT π
Okay legal bestie moment β here's the whole Apache text, unchanged and iconic:
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.
π mwah! This page is fromperl v5.42.3, dated2024-11-27, and it's thenative::Fs(3)footer signing off. Periodt. π
π¦ where this page comes from
- nixpkgs unstable: subversion-client 1.14.5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms