[MediaWiki-commits] [Gerrit] (bug 59949) CategoryMoveRobot: do not move history by default - change (pywikibot/core)
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() -- To view, visit https://gerrit.wikimedia.org/r/106899 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I29161bd47ba0c3b22ba98c8becc92f98abe26614 Gerrit-PatchSet: 2 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Merlijn van Deen valhall...@arctus.nl Gerrit-Reviewer: Ladsgroup ladsgr...@gmail.com Gerrit-Reviewer: Xqt i...@gno.de Gerrit-Reviewer: jenkins-bot ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] (bug 59949) CategoryMoveRobot: do not move history by default - change (pywikibot/core)
Merlijn van Deen has uploaded a new change for review. https://gerrit.wikimedia.org/r/106899 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(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/99/106899/1 diff --git a/scripts/category.py b/scripts/category.py index 73988e4..ccae5aa 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() -- To view, visit https://gerrit.wikimedia.org/r/106899 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I29161bd47ba0c3b22ba98c8becc92f98abe26614 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Merlijn van Deen valhall...@arctus.nl ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits