r98768 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98767‎ | r98768 | r98769 >
Date:14:40, 3 October 2011
Author:demon
Status:deferred
Tags:
Comment:
Revert r83653 (morebots linking in admin log). Like I said in bug 30119, this isn't always correct (Dell r410s do not refer to rev 410), and it needlessly increases the length of messages posted to identi.ca with useless links that go nowhere.
Modified paths:
  • /trunk/tools/adminlogbot/adminlog.py (modified) (history)

Diff [purge]

Index: trunk/tools/adminlogbot/adminlog.py
@@ -9,7 +9,6 @@
1010 import mwclient
1111 import datetime
1212 import statusnet
13 -import re
1413
1514 months=["January","February","March","April","May","June","July","August","September","October","November","December"]
1615
@@ -27,10 +26,6 @@
2827 undef,month,day,undef=line.split(" ",3)
2928 break
3029
31 - # Add some formatting to the message to link revision and bug numbers
32 - message = re.sub( r'\b[rR](\d+)\b', r'[[rev:\1|r\1]]', message )
33 - message = re.sub( r'\bbug ?(\d+)\b', r'[[bugzilla:\1|bug \1]]', message )
34 -
3530 # Um, check the date
3631 now=datetime.datetime.utcnow()
3732 logline="* %02d:%02d %s: %s" % ( now.hour, now.minute, author, message )

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r83653Make morebots link svn and bug id numbers when posting to the server admin log.happy-melon17:02, 10 March 2011

Status & tagging log