Commons:History merging and splitting

Visualization of the merging process.

Shortcuts: COM:HMS • COM:HISTMERGE This page provides information on issues and solutions relating pages and files that underwent cut-and-paste moves (which its history has to be put back together), and inappropriate merging/overwriting (of which its history needs to be split).

History merging

edit
Shortcut

Because most users have the ability to use the move page function, cut-and-paste moves are usually done by people who are not aware of that function, or when the move function fails (e.g. because the target has history), and people who aren't aware of the Administrators Noticeboard forum to ask for help from an administrator.

When a cut-and-paste move is done, the page history of a page can be split among two or more different pages. This is very undesirable, because we need to keep the history with the content for copyright reasons. In most circumstances, administrators are able to fix this by merging page histories.

Instructions for admins
  1. Temporarily delete NewPage
  2. Move OldPage to NewPage, using the move functionality. (In case it is a file, you have to open the Move & Replace link in a new tab or disable AjaxQuickDelete in your preferences.) (Now the old history versions are the whole of the new title’s.)
  3. Undelete the NewPage page, by:
    1. Viewing the page/file history
    2. Clicking “View or restore … deleted edits?”, and
    3. Clicking on “Restore!”. (Now the new title’s history has both the old and new versions, including an extra copy of the most recent version of OldPage, created by the move tool.)
  4. At this stage, NewPage will only show the text “#REDIRECT NewPage” (assuming a redirect was the most recent version of OldPage, the NewPage page will now be showing whatever the most recent version of OldPage was). The last step is to revert (or RevisionDelete) to the last version of NewPage from before the move.

Special:MergeHistory makes it possible to automatically merge the history of two pages.


History splitting

edit

Over time, pages or files may change from one underlying topic to a completely separate topic. Normally, this should be accomplished through moves of pages, or by reuploading an altered file on a slightly different title. However, if a user is unfamiliar with those processes they may simply change the subject of a page or file (overwriting the old). If this is not caught immediately it is very easy for the new topic to build up a substantial edit history of its own.

Instructions for admins
  1. Temporarily delete the page/file (original title)
  2. Restore previous revisions up to (but not including) the point where the topic was changed.
  3. Move (without redirect) the restored versions (old topic) to the desired new title. (In case it is a file, you have to open the Move & Replace link in a new tab or disable AjaxQuickDelete in your preferences.)
    • If there’s already a file or page under the new title and you wish to histmerge into it:
    a) select the “delete the existing article” option, while moving;
    b) restore deleted revisions of new title.
  4. Restore new revisions of new topic (still at original title).

A history merge could also be undone in this way.

Requesting a merge or split

edit

To request a merge or split, fill the following template, and submit it at the bottom of this page. Remember, both files need to be of the same type. Merging of more than two files may also be possible in some cases.

== [[:FILE/PAGE 1]] → [[:FILE/PAGE 2]] ==
* Request: [Split or Merge]
* Reason:
--~~~~
  • For merges, replace FILE/PAGE 2 with the page you want FILE/PAGE 1 contents to be merged into.
  • For splits, replace FILE/PAGE 2 with the new filename which you want the newer content to be moved from FILE/PAGE 1.
 

Current requests

View Edit Add topic

  • English
  • Nederlands
  • dansk
  • español
  • français
  • polski
  • português do Brasil
  • svenska
  • ślůnski
  • русский
  • українська
  • العربية
  • नेपाली
  • മലയാളം
  • 中文
  • 日本語
  •   Done --Sreejith K (talk) 14:44, 4 July 2024 (UTC)[reply]

      This section is resolved and can be archived. If you disagree, replace this template with your comment. --Sreejith K (talk) 14:44, 4 July 2024 (UTC)
    • Request: [Merge]
    • Reason:The two files are essentially the same image, except the former SVG file is uncropped and lack the glossy part of the 2022 NBC Peacock logo (1,003 × 396), while the latter is the cropped SVG file (512 × 206). Given that how similar of two images, these two files should be merged with File:Comcast.svg as a name for both combined files. Additionally, the history file of the uncropped version (uploaded by Олексій Непота) could be moved into the latter file also uploaded by Олексій Непота.

    --NIKO • (do you want to talk to me?) 05:09, 5 July 2024 (UTC)[reply]

  • English
  • Nederlands
  • dansk
  • español
  • français
  • polski
  • português do Brasil
  • svenska
  • ślůnski
  • русский
  • українська
  • العربية
  • नेपाली
  • മലയാളം
  • 中文
  • 日本語
  •   Done --Sreejith K (talk) 16:26, 5 July 2024 (UTC)[reply]

      This section is resolved and can be archived. If you disagree, replace this template with your comment. --Sreejith K (talk) 16:26, 5 July 2024 (UTC)
    • Request: [Merge]
    • Reason: Uploading new version of given image file on Wikimedia Commons doesn't work as expected - older version would still be shown in preview on Commons and on Wikipedia (even explicit reverting in Wikimedia Commons doesn't help). So after updating the countries in my image and inadvertently mixing up the colour legend, I ended up with two versions of the same file and unable to delete one of the files explicitly. 😠

    P.S. Of the four files listed here, ONLY FIRST ONE (Legality HHC EU (corrected legend) Map (July 2024).png) IS ACTUALLY NEEDED, other three files could be just removed. --Szagory (talk) 14:44, 12 July 2024 (UTC)[reply]

    If the other 3 files need to be deleted, why dont you raise a deletion request? Or do you want to merge all of them into one single file? --Sreejith K (talk) 20:55, 12 July 2024 (UTC)[reply]
    Hi Sreejith,
    First of all, I apologise for rudeness of some of my words yesterday, they were written in haste and without thinking.
    Yes, deleting the other files is an option - I haven't made up my mind on that score yet, but file:Legality HHC EU Map.png and file:Legality HHC EU (corrected legend) Map (June 2024).png could definitely be deleted as the colour legend in them is wrong and they are pretty useless.
    Merging the last three files to the first one might still be the best possible solution, I think - if only for the sake of versioning. So whilst I go look for a page to raise deletion requests for files #2 and #4, there would be no harm in your merging files #2, #3 and #4 to file #1... 😉
    Have a nice weekend - and namaskar,
    Szagory (talk) 13:26, 13 July 2024 (UTC)[reply]
  • English
  • Nederlands
  • dansk
  • español
  • français
  • polski
  • português do Brasil
  • svenska
  • ślůnski
  • русский
  • українська
  • العربية
  • नेपाली
  • മലയാളം
  • 中文
  • 日本語
  •   Done - I have merged all the files into a single file. --Sreejith K (talk) 20:37, 13 July 2024 (UTC)[reply]

      This section is resolved and can be archived. If you disagree, replace this template with your comment. --Sreejith K (talk) 20:37, 13 July 2024 (UTC)

    --125.230.81.59 10:15, 13 July 2024 (UTC)[reply]

    The first version means the oldest version uploaded on 5 May 2022, and the third version means the version uploaded on 25 May 2022. So the current version of the image is the new version uploaded on 1 October 2022 (which means the image you see now).--125.230.81.59 10:28, 13 July 2024 (UTC)[reply]
  • English
  • Nederlands
  • dansk
  • español
  • français
  • polski
  • português do Brasil
  • svenska
  • ślůnski
  • русский
  • українська
  • العربية
  • नेपाली
  • മലയാളം
  • 中文
  • 日本語
  •   Done --Sreejith K (talk) 20:42, 13 July 2024 (UTC)[reply]

      This section is resolved and can be archived. If you disagree, replace this template with your comment. --Sreejith K (talk) 20:42, 13 July 2024 (UTC)
    • Request: [Merge]
    • Reason: The two files are identical to each other.

    --Colohisto (talk) 21:15, 13 July 2024 (UTC)[reply]

  • English
  • Nederlands
  • dansk
  • español
  • français
  • polski
  • português do Brasil
  • svenska
  • ślůnski
  • русский
  • українська
  • العربية
  • नेपाली
  • മലയാളം
  • 中文
  • 日本語
  •   Done --Sreejith K (talk) 21:39, 13 July 2024 (UTC)[reply]

      This section is resolved and can be archived. If you disagree, replace this template with your comment. --Sreejith K (talk) 21:39, 13 July 2024 (UTC)

    See also

    edit