Add second, related, patch.

master
http://www.cse.unsw.edu.au/~willu/ 2008-09-21 06:04:37 -04:00 committed by Joey Hess
parent 85a0c9ad8d
commit 2f3b93a55a
1 changed files with 22 additions and 0 deletions

View File

@ -38,3 +38,25 @@ Suggestions welcome.
is(pagename("foo.mdwn"), "foo");
is(pagename("foo/bar.mdwn"), "foo/bar");
----
I wonder if this patch will also be useful:
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 752d176..3f1b67b 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -279,7 +279,11 @@ sub refresh () { #{{{
else {
$f=~s/^\Q$config{srcdir}\E\/?//;
push @files, $f;
- $exists{pagename($f)}=1;
+ my $pagename = pagename($f);
+ if ($exists{$pagename}) {
+ warn(sprintf(gettext("Page %s has multiple possible source pages"), $pagename)."\n");
+ }
+ $exists{$pagename}=1;
}
}
},