This page is a translated version of the page Manual:Merging histories and the translation is 64% complete.

合并页面历史通过Special:MergeHistory操作完成。 这一操作允许有权限使用其的用户将一个页面的历史合并至另一个页面中。 使用时,也可以使用单选按钮栏,仅合并某一段时间的编辑记录至另一页面中。 合并完成后,Special:Logs/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 revision 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.

钩子

API

示例API:日志事件 API结果:

<item logid="6" ns="0" title="Foo" pageid="2" logpage="2" type="merge" action="merge" user="FooUser" timestamp="2014-09-16T17:43:05Z" comment="">
        <param>Bar</param>
        <param>20140916174244</param>
</item>