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. git-svn-id: svn://10.0.0.236/trunk@21650 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
04d7cc916e
commit
5738ca12f1
@ -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…
x
Reference in New Issue
Block a user