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

login
register
mail settings
Submitter phabricator
Date April 17, 2019, 9:13 p.m.
Message ID <differential-rev-PHID-DREV-52rgtvweqepzca5jo4wb-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/39705/
State Superseded
Headers show

Comments

phabricator - April 17, 2019, 9:13 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  As pointed out by Pierre-Yves.

REPOSITORY
  rHG Mercurial

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