r40976 - in /branches/upstream/libsvn-hooks-perl/current: Changes META.yml README lib/SVN/Hooks.pm lib/SVN/Hooks/CheckJira.pm
carnil-guest at users.alioth.debian.org
carnil-guest at users.alioth.debian.org
Wed Jul 29 06:14:54 UTC 2009
Author: carnil-guest
Date: Wed Jul 29 06:14:42 2009
New Revision: 40976
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=40976
Log:
[svn-upgrade] Integrating new upstream version, libsvn-hooks-perl (0.20)
Modified:
branches/upstream/libsvn-hooks-perl/current/Changes
branches/upstream/libsvn-hooks-perl/current/META.yml
branches/upstream/libsvn-hooks-perl/current/README
branches/upstream/libsvn-hooks-perl/current/lib/SVN/Hooks.pm
branches/upstream/libsvn-hooks-perl/current/lib/SVN/Hooks/CheckJira.pm
Modified: branches/upstream/libsvn-hooks-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libsvn-hooks-perl/current/Changes?rev=40976&op=diff
==============================================================================
--- branches/upstream/libsvn-hooks-perl/current/Changes (original)
+++ branches/upstream/libsvn-hooks-perl/current/Changes Wed Jul 29 06:14:42 2009
@@ -1,4 +1,15 @@
Revision history for SVN-Hooks. -*- text -*-
+
+0.20 2009-07-28
+
+ Reverting the change in 0.19 and better documenting the
+ CHECK_JIRA behaviour.
+
+ Updating SVN::Hooks documentation.
+
+0.19 2009-07-28
+
+ Corrects a bug in CheckJira.
0.18 2009-07-24
Modified: branches/upstream/libsvn-hooks-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libsvn-hooks-perl/current/META.yml?rev=40976&op=diff
==============================================================================
--- branches/upstream/libsvn-hooks-perl/current/META.yml (original)
+++ branches/upstream/libsvn-hooks-perl/current/META.yml Wed Jul 29 06:14:42 2009
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: SVN-Hooks
-version: 0.18
+version: 0.20
abstract: A framework for implementing Subversion hooks.
license: ~
author:
Modified: branches/upstream/libsvn-hooks-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libsvn-hooks-perl/current/README?rev=40976&op=diff
==============================================================================
--- branches/upstream/libsvn-hooks-perl/current/README (original)
+++ branches/upstream/libsvn-hooks-perl/current/README Wed Jul 29 06:14:42 2009
@@ -1,6 +1,6 @@
Name: SVN-Hooks
What: Framework for Subversion hooks
-Version: 0.18
+Version: 0.20
Author: Gustavo Chaves <gnustavo at cpan.org>
SVN-Hooks is a framework for creating Subversion hooks
Modified: branches/upstream/libsvn-hooks-perl/current/lib/SVN/Hooks.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libsvn-hooks-perl/current/lib/SVN/Hooks.pm?rev=40976&op=diff
==============================================================================
--- branches/upstream/libsvn-hooks-perl/current/lib/SVN/Hooks.pm (original)
+++ branches/upstream/libsvn-hooks-perl/current/lib/SVN/Hooks.pm Wed Jul 29 06:14:42 2009
@@ -15,11 +15,11 @@
=head1 VERSION
-Version 0.18
+Version 0.20
=cut
-our $VERSION = '0.18';
+our $VERSION = '0.20';
=head1 SYNOPSIS
@@ -136,9 +136,14 @@
=over
-=item SVN::Hooks::AllowLogChange
-
-Allow changes in revision log messages.
+=item SVN::Hooks::AllowPropChange
+
+Allow changes in revision properties.
+
+=item SVN::Hooks::CheckJira
+
+Integrate Subversion with the
+L<JIRA|http://www.atlassian.com/software/jira/> ticketing system.
=item SVN::Hooks::CheckLog
@@ -169,12 +174,6 @@
Deny the addition of files which file names doesn't comply with a
Regexp. Usually used to disallow some characteres in the filenames.
-
-=item SVN::Hooks::JiraAcceptance
-
-Require that the log message in a commit includes references to issues
-in the L<JIRA|http://www.atlassian.com/software/jira/> ticketing
-system.
=item SVN::Hooks::Notify
@@ -203,14 +202,14 @@
use strict;
use warnings;
use SVN::Hooks;
- use SVN::Hooks::AllowLogChange;
+ use SVN::Hooks::AllowPropChange;
+ use SVN::Hooks::CheckJira;
use SVN::Hooks::CheckLog;
use SVN::Hooks::CheckMimeTypes;
use SVN::Hooks::CheckProperty;
use SVN::Hooks::CheckStructure;
use SVN::Hooks::DenyChanges;
use SVN::Hooks::DenyFilenames;
- use SVN::Hooks::JiraAcceptance;
use SVN::Hooks::Notify;
use SVN::Hooks::UpdateRepoFile;
Modified: branches/upstream/libsvn-hooks-perl/current/lib/SVN/Hooks/CheckJira.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libsvn-hooks-perl/current/lib/SVN/Hooks/CheckJira.pm?rev=40976&op=diff
==============================================================================
--- branches/upstream/libsvn-hooks-perl/current/lib/SVN/Hooks/CheckJira.pm (original)
+++ branches/upstream/libsvn-hooks-perl/current/lib/SVN/Hooks/CheckJira.pm Wed Jul 29 06:14:42 2009
@@ -163,6 +163,14 @@
CHECK_JIRA(qr/^(trunk|branches/fix)/ => {
check_one => \&is_scheduled,
});
+
+Note that you need to call CHECK_JIRA at least once with a qr/Regexp/
+in order to trigger the checks. A call for (C<'default'> doesn't
+count. If you want to change defaults and force checks for every
+commit, do this:
+
+ CHECK_JIRA(default => {projects => 'CDS'});
+ CHECK_JIRA(qr/./);
=cut
@@ -272,7 +280,7 @@
}
if ($opts->{by_assignee}) {
my $author = $svnlook->author();
- die "$HOOK: committer ($author) is different from issue $key's assignee ($issue->{assignee}).\n"
+ die "$HOOK: committer ($author) is different from issue ${key}'s assignee ($issue->{assignee}).\n"
if $author ne $issue->{assignee};
}
if (my $check = $opts->{check_one}) {
More information about the Pkg-perl-cvs-commits
mailing list