changeset 5018:67578c72e2d9

Xapian2009: create_page works right no need to check if revision is '99999999'.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Sun, 16 Aug 2009 09:52:24 +0200
parents 09e577676ba2
children a33dae41f921
files MoinMoin/search/Xapian.py
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/Xapian.py	Sun Aug 16 09:09:05 2009 +0200
+++ b/MoinMoin/search/Xapian.py	Sun Aug 16 09:52:24 2009 +0200
@@ -524,12 +524,6 @@
         pagename = page.page_name
         mtime = page.mtime_usecs()
         revision = str(page.get_real_rev())
-        if revision == '99999999':
-            # XXX
-            # While page is being created with MoinMoin._tests.create_page, it is indexed and has revision 99999999.
-            # This magic number is taken from http://hg.moinmo.in/moin/1.9/file/dce251f8cfc3/MoinMoin/Page.py#l307
-            # Note that a page object which create_page returns will have right revision!
-            revision = '0'
         itemid = "%s:%s:%s" % (wikiname, pagename, revision)
         author = page.edit_info().get('editor', '?')
         # XXX: Hack until we get proper metadata