[Libreoffice-commits] dev-tools.git: ciabot/libreoffice-bugzilla.pl
ciabot/libreoffice-bugzilla.pl | 243 - 1 file changed, 243 deletions(-) New commits: commit b6fc35a27ea6eeb134dff76a61fc8700dd80cbe7 Author: Markus MohrhardDate: Sun Apr 17 19:22:44 2016 +0200 the perl based libreoffice bugzilla script is unused for a long time now diff --git a/ciabot/libreoffice-bugzilla.pl b/ciabot/libreoffice-bugzilla.pl deleted file mode 100755 index 19d5454..000 --- a/ciabot/libreoffice-bugzilla.pl +++ /dev/null @@ -1,243 +0,0 @@ -#!/usr/bin/perl -w - -use strict; - -# A hook script which integrates with bugzilla. It looks for bug IDs in -# commit messages and adds the commit message as well as a link to the -# changeset as a comment on the bug. - -# This program is released under the terms of the GNU General Public License -# version 2. A copy of the license may be obtained by emailing the author, -# or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt -# -# The absolute lack of warranty and other disclaimers as per the license -# apply. -# -# Copyright 2008, Devendra Gera. All rights reserved. -# -# Author : Devendra Gera - -### user configurable section - -our $bugzilla = {}; - -use File::Basename; - -my $config = dirname($0) . "/config.pl"; - -do $config; - -# The bug_regex should extract the bug id from the commit message and place -# it in $1 -my $bug_regex = 'fdo#(\d+)'; - -# This contains the target version for all commits to master -# Adjust it if a new version branch has been created -my $master_target = '4.4.0'; - - -# End user configurable section - -use vars qw ($tree @parent $author $committer); -use vars qw ($user $rev $logmsg); - -my $repo = $ARGV[0]; -my $sha= $ARGV[1]; -my $branch = $ARGV[2]; - -use WWW::Bugzilla; - -my $cgiturl = "http://cgit.freedesktop.org/libreoffice/$repo/commit/?id=$sha;; -my $next_version = ''; -my $target_version = ''; -my $target = 'target:'; - -if ( !defined( $branch ) || $branch eq '' ) -{ -$branch = "master"; -$target .= $master_target; -} -else -{ -$cgiturl .= "=$branch"; - -# the fix will be available in the first version that branches from this -if ( $branch =~ /libreoffice-([0-9]+)-([0-9]+)-([0-9]+)\b/ ) { -$next_version = "\nIt will be available already in LibreOffice $1.$2.$3."; -$target .= "$1.$2.$3"; -} -elsif ( $branch =~ /libreoffice-([0-9]+)-([0-9]+)\b/ ) { -$next_version = "\nIt will be available in LibreOffice $1.$2."; -my $next = -1; -$target .= "$1.$2."; -open BRANCHES, "git branch -r |" or die "cannot get the list of branches"; -while (defined (my $remote = )) { -if ( $remote =~ /$branch-([0-9]+)/ ) { -if ( $1 > $next ) { -$next = $1; -} -} -} -close BRANCHES; - if( $next == -1 ) { - my $tags = "libreoffice-"."$1.$2.0.*"; - open TAGS, "git tag -l $tags |" or die "cannot get the tags"; - my $beta = 0; - my $RC = 0; - while (defined (my $tag = )) { - if( $tag =~ /libreoffice-([0-9]+)\.([0-9]+)\.0\.0\.beta([0-9]+)/) { - if( $3 > $beta ) { - $beta = $3; - } - } - if( $tag =~ /libreoffice-([0-9]+)\.([0-9]+)\.0\.([1-9]+)/ ) { - if ( $3 > $RC ) { - $RC = $3; - } - } - } - - if( $beta == 2 || $RC > 0) { - $target = "target:$1.$2.0."; - $target .= $RC + 1; - } - else { - $target = "target:$1.$2.0.0.beta"; - $target .= $beta +1; - } - - } - else { - $next_version .= $next + 1 . "."; - $target .= $next + 1; - } - } - else { -# don't update bugzilla for feature branches - exit; - } -} - -my $line; - -open COMMIT, "git cat-file commit $sha|" or die "git cat-file commit $sha: $!"; -my $state = 0; -$logmsg = ''; -while (defined ($line = )) { -if ($state == 1) { -$logmsg .= $line; -$state++; -next; -} elsif ($state > 1) { -next; -} - -chomp $line; -unless ($line) { -$state = 1; -next; -} - -my ($key, $value) = split(/ /, $line, 2); -if ($key eq 'tree') { -$tree = $value; -} elsif ($key eq 'parent') { -push(@parent, $value); -} elsif ($key eq 'author') { -$author = $value; -$author =~ s/ <.*//; -} elsif ($key eq 'committer') { -$committer = $value; -$committer =~ s/ <.*//; -} -} -close COMMIT; - -my ($bugNr) = ( $logmsg =~
[Libreoffice-commits] dev-tools.git: ciabot/libreoffice-bugzilla.pl
ciabot/libreoffice-bugzilla.pl |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit a3301d2bad20a143bf115e37b55ad75b897716dd Author: Markus Mohrhard markus.mohrh...@googlemail.com Date: Mon Oct 20 10:20:34 2014 +0200 improve error message to find out why script fails diff --git a/ciabot/libreoffice-bugzilla.pl b/ciabot/libreoffice-bugzilla.pl index 9df77fb..5d109fa 100755 --- a/ciabot/libreoffice-bugzilla.pl +++ b/ciabot/libreoffice-bugzilla.pl @@ -205,7 +205,7 @@ die cannot connect to bugzilla unless defined $bz; my $product = $bz-product; -die wrong product unless $product eq 'LibreOffice'; +die wrong product . $product unless $product eq 'LibreOffice'; my $whiteboard = $bz-status_whiteboard(); ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] dev-tools.git: ciabot/libreoffice-bugzilla.pl
ciabot/libreoffice-bugzilla.pl |4 1 file changed, 4 deletions(-) New commits: commit e842752a265888a54d57d9547a13aef18814 Author: Markus Mohrhard markus.mohrh...@googlemail.com Date: Mon Oct 20 10:29:23 2014 +0200 remove the product check It seems that since the last bugzilla update we no longer get the correct product in the variable diff --git a/ciabot/libreoffice-bugzilla.pl b/ciabot/libreoffice-bugzilla.pl index 5d109fa..19d5454 100755 --- a/ciabot/libreoffice-bugzilla.pl +++ b/ciabot/libreoffice-bugzilla.pl @@ -203,10 +203,6 @@ my $bz = WWW::Bugzilla-new( die cannot connect to bugzilla unless defined $bz; -my $product = $bz-product; - -die wrong product . $product unless $product eq 'LibreOffice'; - my $whiteboard = $bz-status_whiteboard(); if ( !defined( $whiteboard ) || $whiteboard eq '' ) ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] dev-tools.git: ciabot/libreoffice-bugzilla.pl
ciabot/libreoffice-bugzilla.pl |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit 19dc1e3645a84986e1fed92d0aaf2b0d25bbdcfc Author: Markus Mohrhard markus.mohrh...@googlemail.com Date: Tue May 27 21:36:39 2014 +0200 master target is now 4.4.0 diff --git a/ciabot/libreoffice-bugzilla.pl b/ciabot/libreoffice-bugzilla.pl index 5e93464..9df77fb 100755 --- a/ciabot/libreoffice-bugzilla.pl +++ b/ciabot/libreoffice-bugzilla.pl @@ -33,7 +33,7 @@ my $bug_regex = 'fdo#(\d+)'; # This contains the target version for all commits to master # Adjust it if a new version branch has been created -my $master_target = '4.3.0'; +my $master_target = '4.4.0'; # End user configurable section ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] dev-tools.git: ciabot/libreoffice-bugzilla.pl
ciabot/libreoffice-bugzilla.pl |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) New commits: commit 01856483add4a3417a4e507245beebf7030157f7 Author: Miklos Vajna vmik...@collabora.co.uk Date: Sun Nov 24 14:10:07 2013 + ciabot: no longer assume config.pl in ~/bin for bugzilla notification diff --git a/ciabot/libreoffice-bugzilla.pl b/ciabot/libreoffice-bugzilla.pl index 4823c44..5e93464 100755 --- a/ciabot/libreoffice-bugzilla.pl +++ b/ciabot/libreoffice-bugzilla.pl @@ -21,7 +21,11 @@ use strict; our $bugzilla = {}; -do $ENV{'HOME'} . /bin/config.pl; +use File::Basename; + +my $config = dirname($0) . /config.pl; + +do $config; # The bug_regex should extract the bug id from the commit message and place # it in $1 ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] dev-tools.git: ciabot/libreoffice-bugzilla.pl
ciabot/libreoffice-bugzilla.pl |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit b51176a726b97e9e27a9703e382a605b93ff2ff6 Author: Markus Mohrhard markus.mohrh...@googlemail.com Date: Thu Nov 21 07:29:17 2013 +0100 update master target for bugzilla script diff --git a/ciabot/libreoffice-bugzilla.pl b/ciabot/libreoffice-bugzilla.pl index 3d273c2..4823c44 100755 --- a/ciabot/libreoffice-bugzilla.pl +++ b/ciabot/libreoffice-bugzilla.pl @@ -29,7 +29,7 @@ my $bug_regex = 'fdo#(\d+)'; # This contains the target version for all commits to master # Adjust it if a new version branch has been created -my $master_target = '4.2.0'; +my $master_target = '4.3.0'; # End user configurable section ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] dev-tools.git: ciabot/libreoffice-bugzilla.pl
ciabot/libreoffice-bugzilla.pl |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit 6f6bd5e8f03113023c1162efb1a4669ec7c21517 Author: Markus Mohrhard markus.mohrh...@googlemail.com Date: Tue May 21 16:35:43 2013 +0200 update master target for git bugzilla script diff --git a/ciabot/libreoffice-bugzilla.pl b/ciabot/libreoffice-bugzilla.pl index 560b6bf..81d7713 100755 --- a/ciabot/libreoffice-bugzilla.pl +++ b/ciabot/libreoffice-bugzilla.pl @@ -29,7 +29,7 @@ my $bug_regex = 'fdo#(\d+)'; # This contains the target version for all commits to master # Adjust it if a new version branch has been created -my $master_target = '4.1.0'; +my $master_target = '4.2.0'; # End user configurable section ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] dev-tools.git: ciabot/libreoffice-bugzilla.pl
ciabot/libreoffice-bugzilla.pl |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit f2d66b6ffac6d72b6de0ce5b295806fb7f2e1243 Author: Markus Mohrhard markus.mohrh...@googlemail.com Date: Tue May 21 22:22:08 2013 +0200 the first beta is beta1 and not beta0 diff --git a/ciabot/libreoffice-bugzilla.pl b/ciabot/libreoffice-bugzilla.pl index 81d7713..3d273c2 100755 --- a/ciabot/libreoffice-bugzilla.pl +++ b/ciabot/libreoffice-bugzilla.pl @@ -78,7 +78,7 @@ else if( $next == -1 ) { my $tags = libreoffice-.$1.$2.0.*; open TAGS, git tag -l $tags | or die cannot get the tags; - my $beta = -1; + my $beta = 0; my $RC = 0; while (defined (my $tag = TAGS)) { if( $tag =~ /libreoffice-([0-9]+)\.([0-9]+)\.0\.0\.beta([0-9]+)/) { ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits