[Mediawiki-l] The rule for "undo" links?

Brion Vibber brion at wikimedia.org
Thu Jun 5 19:04:26 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
application conflict.

> 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?

Yes.

- -- brion
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhIOLoACgkQwRnhpk1wk45l1ACgoToC4hIQJY66aL9WQWYaCDDd
yW8An2Brod8jidF6fmJnIcnbslxjQumj
=h6e7
-----END PGP SIGNATURE-----



More information about the MediaWiki-l mailing list