diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-04-04 18:36:39 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-04-04 18:36:39 -0400 |
commit | 6a7eb63ca534bdad7ab13f840cdee33ea391d9bf (patch) | |
tree | 8a8b9c3e455c2b33ebe86a7b92b7868724746ab5 /IkiWiki | |
parent | 91e583bce1ce8adee4d70bb4a64b46a900c29b45 (diff) |
fix display of web commits in recentchanges
The darcs backend appends @web to the names of web committers, so remove it
when extracting.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/darcs.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/darcs.pm b/IkiWiki/Plugin/darcs.pm index 5927f23da..1ed9f0044 100644 --- a/IkiWiki/Plugin/darcs.pm +++ b/IkiWiki/Plugin/darcs.pm @@ -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], |