[Mediawiki-l] The rule for "undo" links?
brion at wikimedia.org
Thu Jun 5 19:04:26 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
Daniel Barrett wrote:
> On an article's history page, there are "undo" links next to every single
> revision. However, clickubg some of the undo links displays:
> "The edit could not be undone due to conflicting intermediate edits."
> Two questions:
> 1. What is the precise rule for when an undo can/cannot be done? When
> there have been two edits to the same line? Two edits by two different
> authors to the same line? Etc...?
It attempts an automatic reverse diff application via GNU diff3. If this
fails, then it tells you it cannot be done.
Failure would be caused by some intermediate change causing a diff
> 2. Why does MediaWiki display an undo link next to a revision when the
> operation is not possible? Is it because it's too expensive to check the
> "undo status" of every revision when rendering the history page?
- -- brion
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the MediaWiki-l