} else { // specified version
$dbw = $this->getDB( DB_MASTER );
$row = $dbw->selectRow( 'filearchive', '*',
} else { // specified version
$dbw = $this->getDB( DB_MASTER );
$row = $dbw->selectRow( 'filearchive', '*',
protected function scrubAllVersions( $name ) {
$dbw = $this->getDB( DB_MASTER );
$res = $dbw->select( 'filearchive', '*',
protected function scrubAllVersions( $name ) {
$dbw = $this->getDB( DB_MASTER );
$res = $dbw->select( 'filearchive', '*',
$repo = RepoGroup::singleton()->getLocalRepo();
$path = $repo->getZonePath( 'deleted' ) . '/' . $repo->getDeletedHashPath( $key ) . $key;
if ( $this->hasOption( 'delete' ) ) {
$repo = RepoGroup::singleton()->getLocalRepo();
$path = $repo->getZonePath( 'deleted' ) . '/' . $repo->getDeletedHashPath( $key ) . $key;
if ( $this->hasOption( 'delete' ) ) {