Change-Id: I8acf22df78a97c6e4003e7e5ed89800f1be41c6a
// out-of-date someday
$stash = new UploadStash( $repo );
+ $i = 0;
foreach( $keys as $key ) {
+ $i++;
try {
$stash->getFile( $key, true );
$stash->removeFileNoAuth( $key );
} catch ( UploadStashBadPathException $ex ) {
$this->output( "Failed removing stashed upload with key: $key\n" );
}
+ if ( $i % 100 == 0 ) {
+ $this->output( "$i\n" );
+ }
}
- }
+ $this->output( "$i done\n" );
+ }
}
$maintClass = "UploadStashCleanup";