Patchwork D6247: copies: fix up "fullcopy" with missing entries from "diverge"

login
register
mail settings
Submitter phabricator
Date April 17, 2019, 11:27 p.m.
Message ID <1778304af16a35189c409fe9a3fbc0b4@localhost.localdomain>
Download mbox | patch
Permalink /patch/39729/
State Not Applicable
Headers show

Comments

phabricator - April 17, 2019, 11:27 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG22c9ffdf8ef6: copies: fix up &quot;fullcopy&quot; with missing entries from &quot;diverge&quot; (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6247?vs=14821&id=14830

REVISION DETAIL
  https://phab.mercurial-scm.org/D6247

AFFECTED FILES
  mercurial/copies.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/copies.py b/mercurial/copies.py
--- a/mercurial/copies.py
+++ b/mercurial/copies.py
@@ -691,6 +691,11 @@ 
     # that up here
     for dst, src in copy.items():
         fullcopy[dst] = src
+    # Sometimes we forget to add entries from "diverge" to "fullcopy", so fix
+    # that up here
+    for src, dsts in diverge.items():
+        for dst in dsts:
+            fullcopy[dst] = src
     if fullcopy and repo.ui.debugflag:
         repo.ui.debug("  all copies found (* = to merge, ! = divergent, "
                       "% = renamed and deleted):\n")