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

login
register
mail settings
Submitter phabricator
Date April 17, 2019, 10:06 p.m.
Message ID <584464bd8fd9ce1cacd97aab0a0e06f1@localhost.localdomain>
Download mbox | patch
Permalink /patch/39710/
State Not Applicable
Headers show

Comments

phabricator - April 17, 2019, 10:06 p.m.
martinvonz updated this revision to Diff 14811.

REPOSITORY
  rHG Mercurial

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

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
@@ -522,9 +522,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