Allow gkcommit.pl to accept lists of r numbers and trac ticket numbers
This commit was SVN r27033.
Этот коммит содержится в:
родитель
7a4d6f05cf
Коммит
ec874b5fe2
21
contrib/dist/gkcommit.pl
поставляемый
21
contrib/dist/gkcommit.pl
поставляемый
@ -94,15 +94,17 @@ if (!@cmrs) {
|
||||
}
|
||||
|
||||
print "CMR number (-1 to exit)? ";
|
||||
my $cmr = <STDIN>;
|
||||
chomp($cmr);
|
||||
my $cmrs = <STDIN>;
|
||||
chomp($cmrs);
|
||||
last
|
||||
if (-1 == $cmr);
|
||||
if (-1 == $cmrs);
|
||||
|
||||
foreach my $cmr (split(/[\s,]+/, $cmrs)) {
|
||||
if ($cmr > 0) {
|
||||
push(@cmrs, $cmr);
|
||||
} else {
|
||||
print "Invalid CMR number; must be greater than 0 (ignored).\n";
|
||||
print "Invalid CMR number ($cmr); must be greater than 0 (ignored).\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
print("\n");
|
||||
@ -124,15 +126,18 @@ if (!@rs) {
|
||||
}
|
||||
|
||||
print "SVN r number (-1 to exit)? ";
|
||||
my $r = <STDIN>;
|
||||
chomp($r);
|
||||
my $rs = <STDIN>;
|
||||
chomp($rs);
|
||||
last
|
||||
if (-1 == $r);
|
||||
if (-1 == $rs);
|
||||
|
||||
foreach my $r (split(/[\s,]+/, $rs)) {
|
||||
$r =~ s/^r//;
|
||||
if ($r > 0) {
|
||||
push(@rs, $r);
|
||||
} else {
|
||||
print "Invalid SVN r number; must be greater than 0 (ignored).\n";
|
||||
print "Invalid SVN r number ($r); must be greater than 0 (ignored).\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
print("\n");
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user