1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

- Fix HTML/Text diff with Subversion 1.5

- Bump PORTREVISION

PR:		ports/133877
Submitted by:	Will Bond <will at imarc.net>
This commit is contained in:
Rong-En Fan 2009-04-21 13:53:33 +00:00
parent 7fe59c133a
commit f163328d76
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=232423
2 changed files with 29 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= SVN-Web
PORTVERSION= 0.53
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-

View File

@ -0,0 +1,28 @@
--- lib/SVN/Web/Diff.pm.orig 2007-04-30 03:22:51.000000000 +0800
+++ lib/SVN/Web/Diff.pm 2009-04-21 18:06:59.000000000 +0800
@@ -188,8 +188,11 @@
my $mime = $self->{cgi}->param('mime') || 'text/html';
- my %types = ( $rev1 => $ra->check_path($path, $rev1),
- $rev2 => $ra->check_path($path, $rev2) );
+ my $path_getlog = $path;
+ if ($path_getlog eq "/") {$path_getlog = "";}
+ $path_getlog =~ s/^\///;
+ my %types = ( $rev1 => $ra->check_path($path_getlog, $rev1),
+ $rev2 => $ra->check_path($path_getlog, $rev2) );
SVN::Web::X->throw(error => '(cannot diff nodes of different types: %1 %2 %3)',
vars => [$path, $rev1, $rev2])
@@ -299,7 +302,10 @@
my $ra = $self->{repos}{ra};
- if($ra->check_path($path, $rev) == $SVN::Node::none) {
+ my $path_getlog = $path;
+ if ($path_getlog eq "/") {$path_getlog = "";}
+ $path_getlog =~ s/^\///;
+ if($ra->check_path($path_getlog, $rev) == $SVN::Node::none) {
SVN::Web::X->throw(
error => '(path %1 does not exist in revision %2)',
vars => [$path, $rev],