Problem is that even rcs_add may cause a commit for certian RCSs and then
it would deadlock.
foreach my $y ($year-1, $year, $year+1) {
writearchive("calendaryear.tmpl", $y);
foreach my $m (qw{01 02 03 04 05 06 07 08 09 10 11 12}) {
foreach my $y ($year-1, $year, $year+1) {
writearchive("calendaryear.tmpl", $y);
foreach my $m (qw{01 02 03 04 05 06 07 08 09 10 11 12}) {
IkiWiki::rcs_commit_staged(gettext("calendar update"), undef, undef)
if $config{rcs};
IkiWiki::rcs_commit_staged(gettext("calendar update"), undef, undef)
if $config{rcs};
system("ikiwiki", "-setup", $setup, "-refresh");
system("ikiwiki", "-setup", $setup, "-refresh");