Page MenuHomePhabricator

When rolling back edits that equate to no change a misleading failure message is displayed
Closed, ResolvedPublic

Description

For example when trying to rollback the 3 edits listed here https://en.wikipedia.org/w/index.php?title=Rachel_Riley&diff=642596311&oldid=642037500 which would actually not change the content of the article.

The message displayed is

Rollback failed
Cannot roll back edit to Rachel Riley by 195.195.24.21 (talk · block · contribs) because someone else has edited the page.
The last revision was by 195.195.24.21 (talk · contribs).

This should instead say something like "Cannot roll back edit to X by Y because the action would result in no page change"

Event Timeline

Addshore raised the priority of this task from to Low.
Addshore updated the task description. (Show Details)
Addshore added a project: MediaWiki-General.
Addshore subscribed.

Change #1119881 had a related patch set uploaded (by Pppery; author: Pppery):

[mediawiki/core@master] Use more specific error message for no-change rollbacks

https://gerrit.wikimedia.org/r/1119881

Change #1119881 merged by jenkins-bot:

[mediawiki/core@master] Use more specific error message for no-change rollbacks

https://gerrit.wikimedia.org/r/1119881

The new message says: because {{GENDER:$2|he|she|they}} made only dummy revisions.

Are "dummy revisions" the same as "null edits" or something different?

@Pppery I noted that there are two spaces between "[[:$1]]" and "by" in the new message.

@Pppery I noted that there are two spaces between "[[:$1]]" and "by" in the new message.

I already fixed it, it will appear on translatewiki some time soon.