Jump to content

手册:合并历史

From mediawiki.org
This page is a translated version of the page Manual:Merging histories and the translation is 100% complete.

合并页面历史通过Special:MergeHistory操作完成。 这一操作允许有权限使用其的用户将一个页面的历史合并至另一个页面中。 使用时,也可以使用单选按钮栏,仅合并某一段时间的编辑记录至另一页面中。 合并完成后,Special:Log/merge中还会产生一个按钮以供用户在合适时撤销合并。 通过在Special:MergeHistory中交换源页面和目标页面来完成此操作。

合并页面的操作是通过更改revision 表中的rev_page字段来实现的。 合并时,源页面所选修订版本将被设置为目标页面的修订版本。

資料庫

logging.log_params 包含目标页面的标题和时间戳。

钩子

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>