############################################################################### # Codestriker: Copyright (c) 2005 Jan Ruzicka. All rights reserved. # sits@users.sourceforge.net # # This program is free software; you can redistribute it and modify it under # the terms of the GPL. # Repository class which retrieves data using /dev/null package Codestriker::Repository::None; use strict; # Constructor, which takes no parameters. sub new ($) { my ($type) = @_; my $self = {}; bless $self, $type; } # Retrieve the data corresponding to $filename and $revision. Store each line # into $content_array_ref. sub retrieve ($$$\$) { my ($self, $filename, $revision, $content_array_ref) = @_; # clean the content_array_ref as we don't have anything while ( 0 < @$content_array_ref) { shift (@$content_array_ref); } } # Retrieve the "root" of this repository. sub getRoot ($) { my ($self) = @_; return 'none:'; } # Return a URL which views the specified file and revision. sub getViewUrl ($$$) { my ($self, $filename, $revision) = @_; return ''; } # Return a string representation of this repository. sub toString ($) { my ($self) = @_; return 'none'; } # The getDiff operation is not supported. sub getDiff ($$$$$) { my ($self, $start_tag, $end_tag, $module_name, $fh, $error_fh) = @_; return $Codestriker::UNSUPPORTED_OPERATION; } 1;