Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (Debian-5.0)
Apropos / Subsearch:
optional field

native::Fs(3perl)     User Contributed Perl Documentation    native::Fs(3perl)

       SVN::Fs - Subversion filesystem functions

       SVN::Fs wraps the functions in svn_fs.h.  The actual namespace for
       filesystem objects is "_p_svn_fs_t".

       SVN::Fs::berkeley_logfiles($path, $only_unused)
       SVN::Fs::check_related($id1, $id2)
       SVN::Fs::compare_ids($id1, $id2)
       SVN::Fs::contents_changed($root1, $path1, $root2, $path2)
       SVN::Fs::create($path, $config)
       SVN::Fs::deltify_revision($fs, $rev)
       SVN::Fs::get_file_delta_stream($source_root, $source_path,
       $target_root, $target_path)
       SVN::Fs::hotcopy($src_path, $dest_path, $clean)
       SVN::Fs::merge($source_root, $source_path, $target_root, $target_path,
       $ancestor_root, $ancestor_path)
       SVN::Fs::open($path, $config)
           TODO - 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)
           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.

           TODO - why isn't this a method of that object?

           TODO - what can we do with the _p_svn_version_t value returned?

           Return a new "_p_svn_fs_access_t" object representing $username.
           $username is presumed to have been authenticated by the caller.

           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.

           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().

           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.

           The UUID associated with $fs.

           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()".

           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.

           A hashref containing the names and values of all revision
           properties from revision $rev.

           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.

           Associate $uuid with $fs.

           Return the number of the youngest revision in the filesystem.  The
           oldest revision in any filesystem is numbered zero.

       $root->change_node_prop($path, $propname, $value)
           Kind of node at $path.  A number which matches one of these
           constants: $SVN::Node::none, $SVN::Node::file, $SVN::Node::dir,

           The filesystem to which $root belongs, as a "_p_svn_fs_t" object.

           True if there is a node at $path which is a directory.

           True if there is a node at $path which is a file.

           True if the root comes from a revision (i.e., the contents has
           already been committed).

           True if the root comes from a transaction.

           TODO - _p_svn_fs_history_t

       $root->node_prop($path, $propname)
           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.

           Revision number of the revision the root comes from.  For
           transaction roots, returns $SVN::Core::INVALID_REVNUM.

           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.


           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.

           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.

           Full name of the revision, in the same format as can be passed to

           The value of the transaction's $name property.

           A reference to a hash containing all the transaction's properties,
           keyed by name.

           The root directory of the transaction, as a "_p_svn_fs_root_t"

           my $access = SVN::Fs::create_access($username);

           my $access = $fs->get_access;

           my $username = $access->get_username;


           Push a lock-token into the access context.  The context remembers
           all tokens it receives, and makes them available to fs functions.

           The username represented by the access context.

       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.


           Node kind.  A number which matches one of these constants:
           $SVN::Node::none, $SVN::Node::file, $SVN::Node::dir,

           The filename of the directory entry.

           The type of change made.  A number which matches one of the

               Content at path modified.

               Path added in transaction.

               Path removed in transaction.

               Path removed and re-added in transaction.

               Ignore all previous change items for path (internal-use only).

           Node revision id of changed path.  A "_p_svn_fs_id_t" object.

           True if the properties were modified.

           True if the text (content) was modified.

perl v5.10.0                      2006-09-13                 native::Fs(3perl)