Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reduce verbosity of activity when there is nothing going on to smoke.
  • Loading branch information
George Greer committed May 18, 2011
1 parent 1b9008d commit 95d00dc
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions smoke-me
Expand Up @@ -133,18 +133,20 @@ for (;;) {
# Which remote branches don't match our local?
my @remote_branches = sort map { s{^remotes/\Q$o{'remote'}\E/}{} ? $_ : () } grep { $_ =~ $o{'pattern'} } keys %branch;
msay "Remote branches:";
foreach my $branch (sort @remote_branches) {
my $active = !exists $branch{$branch}
|| $branch{"remotes/$o{'remote'}/$branch"} ne $branch{$branch}
? "... "
: " "
;
msay $active, $branch{"remotes/$o{'remote'}/$branch"}, "\t", $branch;
if (0) {
msay "Remote branches:";
foreach my $branch (sort @remote_branches) {
my $active = !exists $branch{$branch}
|| $branch{"remotes/$o{'remote'}/$branch"} ne $branch{$branch}
? "... "
: " "
;
msay $active, $branch{"remotes/$o{'remote'}/$branch"}, "\t", $branch;
}
}
my @candidates = grep { !exists $branch{$_} || $branch{"remotes/$o{'remote'}/$_"} ne $branch{$_} } @remote_branches;
if (@candidates == 0) {
msay "No candidates; sleeping.";
# msay "No candidates; sleeping.";
sleep $o{'sleep'};
next;
}
Expand Down

0 comments on commit 95d00dc

Please sign in to comment.