added patch from terry@mozilla.org to allow branches to be restricted; added self to contributor list for previous checkin

This commit is contained in:
dmose%mozilla.org 2000-03-07 22:37:10 +00:00
Родитель e39f366367
Коммит 62c87543eb
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -19,6 +19,7 @@
# Rights Reserved.
#
# Contributor(s): Terry Weissman <terry@mozilla.org>
# Dan Mosedale <dmose@mozilla.org>
use strict;
use diagnostics;
@ -813,7 +814,12 @@ sub ChangePartition {
my @files = split(/\n/, $F::files);
$query = Query("select files.pattern,partitions.name from files,partitions where files.partitionid != $F::partitionid and partitions.id=files.partitionid and partitions.repositoryid=$F::repid");
my $q = SqlQuote($F::branchname);
$query = Query("select files.pattern,partitions.name from " .
"files,partitions,branches where files.partitionid != " .
"$F::partitionid and partitions.id=files.partitionid " .
"and partitions.repositoryid=$F::repid and branches.id=" .
"partitions.branchid and branches.name='$q'");
while (@row = $query->fetchrow()) {
my $f1 = $row[0];
foreach my $f2 (@files) {