1 When I added or edited a page, no commit message was written out (Mercurial backend, though I guess it shouldn't matter). This was done for e.g. the `rename` plugin. I made a naive but seemingly working change to `editpage.pm` to add a message.
3 I modeled the message on `rename.pm`, which used a lowercase initial letter and imperative form of the verb. This is not the case for e.g. the `comment` plugin, which says "Added a comment: ", so I guess there is no strict rule on style in this case.
5 Diff follows. --[[Daniel Andersson]]
7 > This is somewhat intentional. It's pretty usual for changes to be made
8 > to a wiki without bothering to say what changed; the change speaks for
9 > itself and it would just be clutter to mention what file was changed,
10 > since any reasonable interface will show the filename, or a link,
11 > or some summary of what files were affected when showing a change.
13 > Also your patch stomps over any commit message that the user *does*
14 > provide, so certianly cannot be applied as-is. --[[Joey]]
20 diff -r ee177ca9bf36 Plugin/editpage.pm
21 --- a/Plugin/editpage.pm Fri Jul 15 17:58:04 2011 +0200
22 +++ b/Plugin/editpage.pm Sat Jul 16 03:01:13 2011 +0200
27 + $message = "add $file";
30 + $message = "edit $file";
33 # Prevent deadlock with post-commit hook by