jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/766776 )
Change subject: [IMPR] Enable -always option with fixing_redirects.py
......................................................................
[IMPR] Enable -always option with fixing_redirects.py
Change-Id: I59292fb2031fdaa071ff6fa67d6a917f5e92ed97
---
M scripts/fixing_redirects.py
1 file changed, 3 insertions(+), 1 deletion(-)
Approvals:
Meno25: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/fixing_redirects.py b/scripts/fixing_redirects.py
index d489d69..12d111a 100755
--- a/scripts/fixing_redirects.py
+++ b/scripts/fixing_redirects.py
@@ -4,6 +4,8 @@
Can be used with:
+-always The bot won't ask for confirmation when putting a page
+
-featured Run over featured pages (for some Wikimedia wikis only)
-overwrite Usually only the link is changed ([[Foo]] -> [[Bar|Foo]]).
@@ -229,7 +231,7 @@
for arg in local_args:
if arg == '-featured':
featured = True
- elif arg in ('-ignoremoves', '-overwrite'):
+ elif arg in ('-always', '-ignoremoves', '-overwrite'):
options[arg[1:]] = True
else:
unknown.append(arg)
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/766776
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I59292fb2031fdaa071ff6fa67d6a917f5e92ed97
Gerrit-Change-Number: 766776
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki(a)aol.com>
Gerrit-Reviewer: Meno25 <meno25mail(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged