SVN::Dump::Headers(3pm)

SVN::Dump::Headers3pm

Headers of a svn dump record

Usage

    # SVN::Dump::Headers objects are returned by the read_header_block()
    # method of SVN::Dump::Reader

Version

version 0.08

Overview

A SVN::Dump::Headers object represents the headers of a SVN dump record.

Methods

SVN::Dump::Headers provides the following methods:

new( [$hashref] )

Create and return a new empty SVN::Dump::Headers object.

If $hashref is given (it can be a blessed hash reference), the keys from the hash are used to initialise the headers.

set($h, $v)

Set the $h header to the value $v.

"_" can be used as a replacement for "-" in the header name.

get($h)

Get the value of header $h.

"_" can be used as a replacement for "-" in the header name.

keys()

Return the list of headers, in canonical order.

as_string()

Return a string that represents the record headers.

type()

It is possible to guess the record type from its headers.

This method returns a string that represents the record type. The string is one of "revision", "node", "uuid" or "format".

The method dies if it can't determine the record type.

Encapsulation

When using SVN::Dump to manipulate a SVN dump, one should not directly access the SVN::Dump::Headers component of a SVN::Dump::Record, but use the "set_header()" and "get_header()" methods of the record object.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 5 times.

  1. 6.0
  2. 7
  3. 8
  4. 9–10
  5. 11
  6. 12–13

License

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

From libsvn-dump-perl 0.08-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.