for now, convert edit-log for active pages only

This commit is contained in:
Elan Ruusamäe 2012-09-18 02:21:24 +02:00
parent f31ee6ac98
commit e3e93b885a

View file

@ -179,9 +179,6 @@ def convertfile(pagedir, overwrite = False):
pagedir = os.path.abspath(pagedir)
print "-> %s" % pagedir
# convert edit-log, it's always present even if current page is not
convert_editlog(pagedir, overwrite = overwrite)
curr_rev = get_current_revision(pagedir)
if curr_rev == None:
print "SKIP %s: no current revision" % pagedir
@ -219,6 +216,9 @@ def convertfile(pagedir, overwrite = False):
ns = dw.getNS(dw.cleanID(pagename))
copy_attachments(pagedir, ns)
# convert edit-log, it's always present even if current page is not
convert_editlog(pagedir, overwrite = overwrite)
return 1
#