From 7f3d16a70e32379d9e016b1e7c01f4a59c3a12ee Mon Sep 17 00:00:00 2001 From: Neil Moore Date: Fri, 4 May 2012 22:05:47 -0500 Subject: Whitespace fixes. --- lib/Crawl/Bot/Plugin/Commit.pm | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/Crawl/Bot/Plugin/Commit.pm b/lib/Crawl/Bot/Plugin/Commit.pm index 1172413..b626aba 100644 --- a/lib/Crawl/Bot/Plugin/Commit.pm +++ b/lib/Crawl/Bot/Plugin/Commit.pm @@ -89,23 +89,23 @@ sub tick { $self->say_all("New branch created: $branch ($nrev commits)"); } - if ($self->announce_commits) { - my %commits = map { $_, $self->parse_commit($_) } @revs; - - my $cherry_picks = @revs; - @revs = grep { $commits{$_}->{subject} !~ /\(cherry picked from / - && $commits{$_}->{body} !~ /\(cherry picked from / } @revs; - $cherry_picks -= @revs; - $self->say_all("Cherry-picked $cherry_picks commits into $branch") - if $cherry_picks > 0; - - for my $rev (@revs) { - my $commit = $commits{$rev}; - my $abbr = substr($rev, 0, 12); - my $br = $branch eq "master" ? "" : "[$branch] "; - $self->say_all("$commit->{author} $br* $abbr ($commit->{nfiles} changed): $commit->{subject}"); - } - } + if ($self->announce_commits) { + my %commits = map { $_, $self->parse_commit($_) } @revs; + + my $cherry_picks = @revs; + @revs = grep { $commits{$_}->{subject} !~ /\(cherry picked from / + && $commits{$_}->{body} !~ /\(cherry picked from / } @revs; + $cherry_picks -= @revs; + $self->say_all("Cherry-picked $cherry_picks commits into $branch") + if $cherry_picks > 0; + + for my $rev (@revs) { + my $commit = $commits{$rev}; + my $abbr = substr($rev, 0, 12); + my $br = $branch eq "master" ? "" : "[$branch] "; + $self->say_all("$commit->{author} $br* $abbr ($commit->{nfiles} changed): $commit->{subject}"); + } + } $self->head($branch => $head); } -- cgit v1.2.3-54-g00ecf