Manual:Merging histories

Jump to: navigation, search

Other languages:
English • ‎español • ‎français • ‎日本語 • ‎polski • ‎português • ‎português do Brasil • ‎中文

Merging page histories is done using Special:MergeHistory. This lets the user merge revisions of the history of one source page into a newer page. The user can use the radio button column to merge in only the revisions created at and before the specified time. Special:Logs/merge will then present the user with an "Unmerge" button to reverse the merge. This is done by switching the source and destination pages in Special:MergeHistory.

Merging pages works by changing the rev_page field in the revisionManual:revision table table. When you merge two pages, the source page must generally be older than the destination page, because Special:MergeHistory will only allow revisions to be prepended to a page's history—mixing histories would not make sense. When merging, the selected revisions from the source page will be set as revisions of the destination page.


logging.log_params holds the page title of the destination page and the timestamp.



A sample API:LogeventsAPI:Logevents API result:

<item logid="6" ns="0" title="Foo" pageid="2" logpage="2" type="merge" action="merge" user="FooUser" timestamp="2014-09-16T17:43:05Z" comment="">
Log actionsManual:Log actions Events: BlockingManual:Block and unblockImportingManual:Importing revisionsMerging historiesManual:Merging historiesPage deletionManual:Page deletionPage movingManual:Page movingPage restorationManual:Page restorationPatrollingManual:PatrollingProtectionManual:ProtectionRenaming a userExtension:RenameuserRevisionDeleteManual:RevisionDeleteThankingExtension:ThanksUploadingManual:UploadingUser creationManual:User creationUser rights managementManual:User rightsMerging usersManual:Merging users

Settings: $wgLogTypesManual:$wgLogTypes$wgLogActionsManual:$wgLogActions$wgLogNamesManual:$wgLogNames$wgLogHeadersManual:$wgLogHeaders$wgLogActionsHandlersManual:$wgLogActionsHandlers$wgLogRestrictionsManual:$wgLogRestrictions$wgFilterLogTypesManual:$wgFilterLogTypes$wgActionFilteredLogsManual:$wgActionFilteredLogs

Miscellaneous: Logging to Special:LogManual:Logging to Special:LogAPIAPI:Logeventslogging tableManual:Logging tableNull revisionManual:Null revision