changeset 809:b38ec86abed0 pytest2

indexing: fix for rev_no == 0
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 31 Aug 2011 02:09:48 +0200
parents 4411b124f647
children 449c081c2a50
files MoinMoin/script/maint/index.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/maint/index.py	Wed Aug 31 00:38:43 2011 +0200
+++ b/MoinMoin/script/maint/index.py	Wed Aug 31 02:09:48 2011 +0200
@@ -86,7 +86,7 @@
                         except NoSuchRevisionError: # item has no such revision
                             continue
                         # revision is now the latest revision of this item
-                        if "latest_revisions_index" in indexnames and rev_no:
+                        if "latest_revisions_index" in indexnames and rev_no is not None:
                             metadata = backend_to_index(revision, rev_no, latest_rev_schema, rev_content, interwikiname)
                             latest_rev_writer.add_document(**metadata)