mozilla/kuma — pull request #165 by groovecoder (2012-04-18 16:16:52+00:00)
Title: Fix Bug 735888 fill parent_id using MindTouch wiki.languages

New options on the migration script:

--withlanguages=NN
migrates NN pages that have {{ wiki.languages ... }} in the content. An easy way to grab a bunch of pages that actually have source/translation relationships

--language-rels
makes kuma parent/child relationships for pages specified in the migrate options

e.g.,

migrate_to_kuma_wiki --wipe --withlanguages=5 --language-rels
wipes all pages, migrates 5 pages with translations, migrates the translations, and creates the parent/child relationship for the $translate page to work

migrate_to_kuma_wiki --wipe --viewed=50 --language-rels
wipes all pages, migrates 50 most-viewed pages, migrates their translations (if any), and creates the parent/child relationship for the $translate page to work