https://bugzilla.wikimedia.org/show_bug.cgi?id=59857
Web browser: ---
Bug ID: 59857
Summary: mode in which update.php only prints actual DB changes
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: Maintenance scripts
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Mobile Platform: ---
Our team has a `make master` command to update a MediaWiki server to master
which we run dozens of times a day. We want to know the 0.5% of the time that
it makes DB changes. So I want this to run update.php but only output actual
DB changes, not 230 lines of "... already exists/already set/already logged as
completed"
Unfortunately both "... already done it" and "OMG changed something" messages
go through the same output() function, so --quiet shuts both off. The best I
can do is pipe output through sed -n '/^[^.]/p to strip lines starting with
dot, but that still outputs some irrelevant lines
Depending on the size of your database this may take a while!
Turning off Content Handler DB fields for this part of upgrade.
Content Handler DB fields should be usable now.
Done in 0:01.
I propose --quiet output any actual DB change lines rather than suppress them.
I think that's simpler than adding another flag like --report ("when --quiet
set, still print out any database changes"), but the latter would be fine.
This is similar to bug 22753 and bug 32508.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l