Patchwork D6266: copies: replace .items() by .values() where appropriate

login
register
mail settings
Submitter phabricator
Date April 29, 2019, 10:52 p.m.
Message ID <99633d23b5ff8df9412b3f6f539957d4@localhost.localdomain>
Download mbox | patch
Permalink /patch/39893/
State Not Applicable
Headers show

Comments

phabricator - April 29, 2019, 10:52 p.m.
martinvonz updated this revision to Diff 14966.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6266?vs=14945&id=14966

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

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
@@ -527,9 +527,9 @@ 
 
     renamedeleteset = set()
     divergeset = set()
-    for src, dsts in diverge.items():
+    for dsts in diverge.values():
         divergeset.update(dsts)
-    for src, dsts in renamedelete.items():
+    for dsts in renamedelete.values():
         renamedeleteset.update(dsts)
 
     # find interesting file sets from manifests