native::Fs(3)

πŸ“¦ version 1.14.5, in nixpkgs unstable

🌸 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 $s is null, doesn't do anything if its an empty string. πŸ’€
  • SVN::Fs::props_changed($root1, $path1, $root2, $path2) β€” see also SVN::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_t object. Also: TODO β€” why isn't this a method of that object? πŸ‘€
  • SVN::Fs::version() β€” TODO β€” what can we do with the _p_svn_version_t value returned?
  • SVN::Fs::create_access($username) β€” return a new _p_svn_fs_access_t object representing $username. $username is 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_t object 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 populate lock->token before calling svn_fs_attach_lock(). πŸ”’
  • $fs->get_access() β€” the filesystem's current access context, as a _p_svn_fs_access_t object. Returns undef if no access context has been set with the set_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_t object.
  • $fs->revision_prop($rev, $propname) β€” the value of revision property $propname in 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. $access should be a _p_svn_fs_access_t object, or undef to disassociate the current access context from the filesystem.
  • $fs->set_uuid($uuid) β€” associate $uuid with $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 $root belongs, as a _p_svn_fs_t object.
  • $root->is_dir($path) β€” true if there is a node at $path which is a directory.
  • $root->is_file($path) β€” true if there is a node at $path which 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_t objects 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 $txn are discarded, and the filesystem is left unchanged.
Note: This function first sets the state of $txn to 'dead', and then attempts to purge it and any related data from the filesystem. If some part of the cleanup process fails, $txn and 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 $value is undef then the property $name is removed, if it exists. Otherwise the property $name is 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 $name property.
  • $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_t object.

🌸 _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_t object.
  • $change->prop_mod() β€” true if the properties were modified.
  • $change->text_mod() β€” true if the text (content) was modified.

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 from perl v5.42.3, dated 2024-11-27, and it's the native::Fs(3) footer signing off. Periodt. πŸŽ€
πŸ“¦ where this page comes from