freebsd-ports/devel/p5-SVN-Web/files/patch-View.pm
Rong-En Fan 1a45b56f60 - Fix for using with subversion 1.5 (the patches work with subversion 1.4)
- Bump PORTREVISION
- Move post-install under bsd.port.pre.mk

PR:		ports/125701
Submitted by:	mitsuru at riken.jp
2008-07-20 10:33:02 +00:00

14 lines
537 B
Perl

--- lib/SVN/Web/View.pm.org 2008-07-17 11:24:12.000000000 +0900
+++ lib/SVN/Web/View.pm 2008-07-17 11:24:53.000000000 +0900
@@ -134,7 +134,10 @@
my $rev = $act_rev;
# Get the log for this revision of the file
- $ra->get_log([$path], $rev, $rev, 1, 1, 1,
+ my $path_getlog = $path;
+ if ($path_getlog eq "/") {$path_getlog = "";}
+ $path_getlog =~ s/^\///;
+ $ra->get_log([$path_getlog], $rev, $rev, 1, 1, 1,
sub { $self->{REV} = $self->_log(@_) });
# Get the text for this revision of the file