" WHERE wiki_version.wiki_version_id = filesystem.ref_id AND wiki_version.wiki_page_id = wiki_page.wiki_page_id AND wiki_page.pagename = filesystem.file_name AND project.project_id=wiki_page.ref_id AND project.unix_name="+project_name+" AND wiki_version.wiki_version_id>"+ startRev +
" ORDER BY wiki_version.last_modified_date ASC";
ResultSet rs = stmt.executeQuery(query);
while (rs.next()) {
String articleName = rs.getString(1);
WikiDBEncoder encoder = new WikiDBEncoder();
try {
articleName = encoder.encodeWikiDB(articleName);
logger.debug("Article name encoded: " + articleName);
} catch (IOException e) {
logger.error("Encoding article name failed: ", e);
}
articleName = fixString(articleName);