Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

svn::hooks::generic(3pm) [debian man page]

SVN::Hooks::Generic(3pm)				User Contributed Perl Documentation				  SVN::Hooks::Generic(3pm)

NAME
SVN::Hooks::Generic - Implement generic checks for all Subversion hooks. VERSION
version 1.19 SYNOPSIS
This SVN::Hooks plugin allows you to easily write generic checks for all Subversion standard hooks. It's deprecated. You should use the SVN::Hooks hook defining exported directives instead. This module is configured by the following directive. GENERIC(HOOK => FUNCTION, HOOK => [FUNCTIONS], ...) This directive associates FUNCTION with a specific HOOK. You can make more than one association with a single directive call, or you can use multiple calls to make multiple associations. Moreover, you can associate a hook with a single function or with a list of functions (passing them as elements of an array). All functions associated with a hook will be called in an unspecified order with the same arguments. Each hook must be associated with functions with a specific signature, i.e., the arguments that are passed to the function depends on the hook to which it is associated. The hooks are specified by their standard names. The function signatures are the following: post-commit(SVN::Look) post-lock(repos-path, username) post-revprop-change(SVN::Look, username, property-name, action) post-unlock(repos-path, username) pre-commit(SVN::Look) pre-lock(repos-path, path, username, comment, steal-lock-flag) pre-revprop-change(SVN::Look, username, property-name, action) pre-unlock(repos-path, path, username, lock-token, break-unlock-flag) start-commit(repos-path, username, capabilities) The functions may perform whatever checks they want. If the checks succeed the function must simply return. Otherwise, they must die with a suitable error message, which will be sent back to the user performing the Subversion action which triggered the hook. The sketch below shows how this directive could be used. sub my_start_commit { my ($repo_path, $username, $capabilities) = @_; # ... } sub my_pre_commit { my ($svnlook) = @_; # ... } GENERIC( 'start-commit' => &my_start_commit, 'pre-commit' => &my_pre_commit, ); AUTHOR
Gustavo L. de M. Chaves <gnustavo@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by CPqD. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-24 SVN::Hooks::Generic(3pm)

Check Out this Related Man Page

SVN::Hooks::AllowPropChange(3pm)			User Contributed Perl Documentation			  SVN::Hooks::AllowPropChange(3pm)

NAME
SVN::Hooks::AllowPropChange - Allow changes in revision properties. VERSION
version 1.19 SYNOPSIS
This SVN::Hooks plugin is used to allow revision (or non-versioned) properties ("svn:author", "svn:date", and "svn:log") to be changed by a group of users. It's active in the "pre-revprop-change" hook. It's configured by the following directive. ALLOW_PROP_CHANGE(PROP => WHO, ...) This directive enables the change of revision properties. By default any change is denied unless explicitly allowed by the directive. You can use the directive more than once. The PROP argument specifies the propertie(s) that are to be configured depending on its type. If no argument is given, no user can change any property. STRING Specify a single property by name ("author", "date", or "log"). REGEXP Specify all properties that match the Regexp. The optional WHO arguments specify the users that are allowed to make those changes. If absent, no user can change a log message. Otherwise, it specifies the allowed users depending on its type. STRING Specify a single user by name. REGEXP Specify the class of users whose names are matched by the Regexp. ALLOW_PROP_CHANGE('svn:log' => 'jsilva'); # jsilva can change svn:log ALLOW_PROP_CHANGE(qr/./ => qr/silva$/); # any *silva can change any property AUTHOR
Gustavo L. de M. Chaves <gnustavo@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by CPqD. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-24 SVN::Hooks::AllowPropChange(3pm)
Man Page