summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-09-23 13:32:41 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-09-23 13:32:41 -0400
commit9cbcda14aca677008a7e2fe70463deda5cbdf34b (patch)
treee23114568d331a7c2c07b766b26f475f5372c37b /IkiWiki
parentc4777e30a94c07b915aa192ec9b24d039ebe76d9 (diff)
Print a debug message if a page has multiple source files.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Render.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 752d17643..ceb7c842c 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}) {
+ debug(sprintf(gettext("%s has multiple possible source pages"), $pagename));
+ }
+ $exists{$pagename}=1;
}
}
},