Bug 272150: Attempts to rebuild cvs history on specific directories were ignored
r=timeless
This commit is contained in:
Родитель
af94cffcd9
Коммит
266cbb5c68
|
@ -27,7 +27,6 @@ use strict;
|
||||||
sub sillyness {
|
sub sillyness {
|
||||||
my $zz;
|
my $zz;
|
||||||
$zz = $::RepositoryID;
|
$zz = $::RepositoryID;
|
||||||
$zz = $::StartingDir;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
use File::Basename;
|
use File::Basename;
|
||||||
|
@ -239,7 +238,6 @@ ConnectToDatabase();
|
||||||
$::Repository = $::TreeInfo{$::TreeID}{'repository'};
|
$::Repository = $::TreeInfo{$::TreeID}{'repository'};
|
||||||
$::Description = $::TreeInfo{$::TreeID}{'description'};
|
$::Description = $::TreeInfo{$::TreeID}{'description'};
|
||||||
$::RepositoryID = GetId('repositories', 'repository', $::Repository);
|
$::RepositoryID = GetId('repositories', 'repository', $::Repository);
|
||||||
$::StartingDir = 0;
|
|
||||||
|
|
||||||
print "
|
print "
|
||||||
Rebuilding entire checkin history in $::Description, (`$::TreeID' tree) ...
|
Rebuilding entire checkin history in $::Description, (`$::TreeID' tree) ...
|
||||||
|
@ -250,9 +248,9 @@ Log("Rebuilding cvs history in $::Description, (`$::TreeID' tree)...");
|
||||||
LoadDirList();
|
LoadDirList();
|
||||||
my @Dirs = grep(!/\*$/, @::LegalDirs);
|
my @Dirs = grep(!/\*$/, @::LegalDirs);
|
||||||
@Dirs = split(/,\s*/, $::Modules) if $::Modules;
|
@Dirs = split(/,\s*/, $::Modules) if $::Modules;
|
||||||
my $StartingDir;
|
if ($::SubDir) {
|
||||||
($StartingDir = "$::Repository/$::SubDir") =~ s!/.?$!! if $::SubDir;
|
@Dirs = ($::SubDir);
|
||||||
|
}
|
||||||
|
|
||||||
print "Doing directories: @Dirs ...\n";
|
print "Doing directories: @Dirs ...\n";
|
||||||
foreach my $Dir (@Dirs) {
|
foreach my $Dir (@Dirs) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче