NAME

SVN::TXN::Props - Provides a hash interface to Subversion transaction properties

SYNOPSIS

use SVN::TXN::Props qw(get_txn_props);
my $props = get_txn_props('/svnrepo', '1-0');
$props->{'svn:author'} = 'nobody';

DESCRIPTION

Maps properties from a subversion transaction to a hash. This allows for reading and manipulating properties of active subversion transactions before the transaction is commited, for example during a pre-commit hook script.

This module provides a tied hash interface, allowing it to be used with the perl tie function, eg:

use SVN::TXN::Props;
tie %props, 'SVN::TXN::Props', $repository_path, $txn_name;
$props{'svn:author'} = 'nobody';

Alternatively, the function get_txn_props can be imported, which will returned an already tied hash reference, eg:

use SVN::TXN::Props qw(get_txn_props);
my $props = get_txn_props($repository_path, $txn_name);
$props->{'svn:author'} = 'nobody';

SEE ALSO

SVN::Repo, SVN::Fs

AUTHOR

Chris Leishman, <chris@leishman.org>

COPYRIGHT AND LICENSE

Copyright (C) 2007 by Chris Leishman

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.