jenkins-bot has submitted this change and it was merged.
Change subject: (bug 59949) CategoryMoveRobot: do not move history by default ......................................................................
(bug 59949) CategoryMoveRobot: do not move history by default
History moving is not implemented yet, and will raise an Exception, so the default should be to not move the history.
Change-Id: I29161bd47ba0c3b22ba98c8becc92f98abe26614 --- M scripts/category.py 1 file changed, 9 insertions(+), 8 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/category.py b/scripts/category.py index 73988e4..95ea0ce 100755 --- a/scripts/category.py +++ b/scripts/category.py @@ -1,6 +1,6 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -""" +(""" Scripts to manage categories.
Syntax: python category.py action [-option] @@ -37,9 +37,10 @@ for the language, which is "Category was disbanded" in English.
-Options for "move" action: - * -hist - Creates a nice wikitable on the talk page of target category - that contains detailed page history of the source category. +Options for "move" action:""" + # * -hist - Creates a nice wikitable on the talk page of target category + # that contains detailed page history of the source category. + """ * -nodelete - Don't delete the old category after move
Options for several actions: @@ -81,7 +82,7 @@
This will move all pages in the category US to the category United States.
-""" +""") # # (C) Rob W.W. Hooft, 2004 # (C) Daniel Herding, 2004 @@ -393,7 +394,7 @@ def __init__(self, oldCatTitle, newCatTitle, batchMode=False, editSummary='', inPlace=False, moveCatPage=True, deleteEmptySourceCat=True, titleRegex=None, - useSummaryForDeletion=True, withHistory=True): + useSummaryForDeletion=True, withHistory=False): self.editSummary = editSummary self.oldCat = pywikibot.Category( pywikibot.Link('Category:' + oldCatTitle)) @@ -878,7 +879,7 @@ recurse = False titleRegex = None pagesonly = False - withHistory = True + withHistory = False
# This factory is responsible for processing command line arguments # that are also used by other scripts and that determine on which pages @@ -950,7 +951,7 @@ elif arg == '-redirect': follow_redirects = True elif arg == '-hist': - withHistory = True + withHistory = False else: genFactory.handleArg(arg) pywikibot.Site().login()
pywikibot-commits@lists.wikimedia.org