|
Lines 188-195
Link Here
|
| 188 |
my $mime = $self->{cgi}->param('mime') || 'text/html'; |
188 |
my $mime = $self->{cgi}->param('mime') || 'text/html'; |
| 189 |
my %types = ( $rev1 => $ra->check_path($path, $rev1), |
189 |
my $path_getlog = $path; |
| 190 |
$rev2 => $ra->check_path($path, $rev2) ); |
190 |
if ($path_getlog eq "/") {$path_getlog = "";} |
|
|
191 |
$path_getlog =~ s/^\///; |
| 192 |
my %types = ( $rev1 => $ra->check_path($path_getlog, $rev1), |
| 193 |
$rev2 => $ra->check_path($path_getlog, $rev2) ); |
| 191 |
SVN::Web::X->throw(error => '(cannot diff nodes of different types: %1 %2 %3)', |
194 |
SVN::Web::X->throw(error => '(cannot diff nodes of different types: %1 %2 %3)', |
| 192 |
vars => [$path, $rev1, $rev2]) |
195 |
vars => [$path, $rev1, $rev2]) |
|
Lines 299-305
Link Here
|
| 299 |
my $ra = $self->{repos}{ra}; |
302 |
my $ra = $self->{repos}{ra}; |
| 300 |
if($ra->check_path($path, $rev) == $SVN::Node::none) { |
303 |
my $path_getlog = $path; |
|
|
304 |
if ($path_getlog eq "/") {$path_getlog = "";} |
| 305 |
$path_getlog =~ s/^\///; |
| 306 |
if($ra->check_path($path_getlog, $rev) == $SVN::Node::none) { |
| 301 |
SVN::Web::X->throw( |
307 |
SVN::Web::X->throw( |
| 302 |
error => '(path %1 does not exist in revision %2)', |
308 |
error => '(path %1 does not exist in revision %2)', |
| 303 |
vars => [$path, $rev], |
309 |
vars => [$path, $rev], |