mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
When we do "showall", or ask to rebuild checkin history, then we'll do
a week. But, more normally, we'll only do two days, since it's much faster that way, and we need to do this all the time.
This commit is contained in:
parent
e52c15774b
commit
0253fabd29
@ -24,6 +24,13 @@ require 'globals.pl';
|
||||
$F_DEBUG=1;
|
||||
|
||||
|
||||
$days = 2;
|
||||
|
||||
if ($ARGV[0] eq "-days") {
|
||||
shift @ARGV;
|
||||
$days = shift @ARGV;
|
||||
}
|
||||
|
||||
$tree = $ARGV[0];
|
||||
|
||||
open(SEMFILE, ">>$tree/buildwho.sem") || die "Couldn't open semaphore file!";
|
||||
@ -64,7 +71,7 @@ sub build_who {
|
||||
close(BUILDLOG);
|
||||
|
||||
#($j,$query_date_min) = split(/\|/, $line);
|
||||
$query_date_min = time - (60 * 60 * 24 * 7); # One week.
|
||||
$query_date_min = time - (60 * 60 * 24 * $days);
|
||||
|
||||
if( $F_DEBUG ){
|
||||
print "Minimum date: $query_date_min\n";
|
||||
|
@ -53,8 +53,8 @@ $colormap = {
|
||||
#$form{'tree'} = DogbertTip;
|
||||
$tree = $form{'tree'};
|
||||
|
||||
if (exists $form{'rebuildguilty'}) {
|
||||
system ("./buildwho.pl $tree > /dev/null");
|
||||
if (exists $form{'rebuildguilty'} || exists $form{'showall'}) {
|
||||
system ("./buildwho.pl -days 7 $tree > /dev/null");
|
||||
undef $form{'rebuildguilty'};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user