fix display of web commits in recentchanges

The darcs backend appends @web to the names of web committers, so remove it
when extracting.
master
Joey Hess 2009-04-04 18:36:39 -04:00
parent 91e583bce1
commit 6a7eb63ca5
1 changed files with 5 additions and 2 deletions

View File

@ -354,16 +354,19 @@ sub rcs_recentchanges ($) {
push @message, { line => $_ } foreach (@{$patch->{name}});
my $committype;
if ($patch->{author} =~ /\@web$/) {
my $author;
if ($patch->{author} =~ /(.*)\@web$/) {
$author = $1;
$committype = "web";
}
else {
$author=$patch->{author};
$committype = "darcs";
}
push @ret, {
rev => $patch->{hash},
user => $patch->{author},
user => $author,
committype => $committype,
when => $when,
message => [@message],