diff -ru SVN-Web-0.53-old/lib/SVN/Web/Browse.pm SVN-Web-0.53/lib/SVN/Web/Browse.pm
--- SVN-Web-0.53-old/lib/SVN/Web/Browse.pm 2007-04-29 20:22:51.000000000 +0100
+++ SVN-Web-0.53/lib/SVN/Web/Browse.pm 2009-05-11 12:45:24.000000000 +0100
@@ -149,6 +149,7 @@
my $uri = $path eq '/' ? $self->{repos}{uri}
: $self->{repos}{uri} . $path;
+ $uri =~ s{/+\z}{};
my($exp_rev, $yng_rev, $act_rev, $at_head) = $self->get_revs();
diff -ru SVN-Web-0.53-old/lib/SVN/Web/Checkout.pm SVN-Web-0.53/lib/SVN/Web/Checkout.pm
--- SVN-Web-0.53-old/lib/SVN/Web/Checkout.pm 2007-04-29 20:22:51.000000000 +0100
+++ SVN-Web-0.53/lib/SVN/Web/Checkout.pm 2009-05-11 12:45:04.000000000 +0100
@@ -68,7 +68,9 @@
my $path = $self->{path};
my $node_kind;
- $ctx->info("$uri$path", $rev, $rev,
+ my $p = $uri . $path;
+ $p =~ s{/+\z}{};
+ $ctx->info($p, $rev, $rev,
sub { $node_kind = $_[1]->kind(); }, 0);
if($node_kind != $SVN::Node::file) {
diff -ru SVN-Web-0.53-old/lib/SVN/Web/Log.pm SVN-Web-0.53/lib/SVN/Web/Log.pm
--- SVN-Web-0.53-old/lib/SVN/Web/Log.pm 2007-04-29 20:22:51.000000000 +0100
+++ SVN-Web-0.53/lib/SVN/Web/Log.pm 2009-05-11 12:45:45.000000000 +0100
@@ -231,7 +231,9 @@
# $self->_resolve_changed_paths();
my $is_dir;
- $ctx->info("$uri$path", $rev, $rev,
+ my $p = $uri . $path;
+ $p =~ s{/+\z}{};
+ $ctx->info($p, $rev, $rev,
sub {
my($path, $info, $pool) = @_;
$is_dir = $info->kind() == $SVN::Node::dir;
diff -ru SVN-Web-0.53-old/lib/SVN/Web/Revision.pm SVN-Web-0.53/lib/SVN/Web/Revision.pm
--- SVN-Web-0.53-old/lib/SVN/Web/Revision.pm 2007-04-29 20:22:51.000000000 +0100
+++ SVN-Web-0.53/lib/SVN/Web/Revision.pm 2009-05-11 12:43:53.000000000 +0100
@@ -275,9 +275,16 @@
foreach my $path (keys %{ $data->{paths} }) {
$subpool->clear();
+ if ($path eq '/') {
+ $data->{paths}{$path}{isdir} = 1;
+ next;
+ }
+
# Ignore deleted nodes
if($data->{paths}{$path}{action} ne 'D') {
- $ctx->info("$uri$path", $data->{rev}, $data->{rev},
+ my $p = $uri . $path;
+ $p =~ s{/+\z}{};
+ $ctx->info($p, $data->{rev}, $data->{rev},
sub { $node_kind = $_[1]->kind() }, 0, $subpool);
$data->{paths}{$path}{isdir} = $node_kind == $SVN::Node::dir;