Jump to content

Manual:Null revision

From mediawiki.org

A null revision or dummy revision is a special type of page revision that occurs only with specific types of actions performed on pages or their revisions. In the database, the null revision is asasociated with the same rows in the content table as its parent. It causes the log event to be displayed in the page history.

A null revision may be created through RevisionStore::newNullRevision() or PageUpdater::setForceEmptyRevision() .

Note that null revisions are distinct from "null edits ", which do not create an entry in the page history.

Actions that create null revisions

[edit]
  • Imports
  • Page moves
  • Page protection, unprotection, or changing protection level

Actions that do not create null revisions

[edit]

In these cases, revision rows are created with new ids.

  • Changing visibility of deletions (RevisionDelete )
  • Merges
  • Page deletions
  • Page restorations
  • Patrol events

See also

[edit]