3 The mercurial backend is broken when no changelog message is given.
5 Here is a quick patch, partialy copying the svn backend.
7 --- /usr/share/perl5/IkiWiki/Rcs/mercurial.pm 2007-03-18 23:19:40.000000000 +0100
8 +++ ./mercurial.pm 2007-03-24 13:11:36.000000000 +0100
12 $user = possibly_foolish_untaint($user);
13 + $message="web commit by $user".(length $message ? ": $message" : "");
15 elsif (defined $ipaddr) {
16 $user = "Anonymous from $ipaddr";
17 + $message="web commit from $ipaddr".(length $message ? ": $message" : "");
21 + $message="web commit by Anonymous".(length $message ? ": $message" : "");
24 $message = possibly_foolish_untaint($message);
26 > The svn backend puts the user info in the message because that's the only
27 > way to store the user info, unlike with mercurial. The svn plugin also
28 > removes that info when getting the RecentChanges info. Since mercurial
29 > does not do that, it seemed better to me to test for an empty message and
30 > set it to a dummy commit string, which I've [[bugs/done]]. --[[Joey]]
31 >>Thanks for the correct fix, Joey. --hb