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

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Sun Apr 28 03:00:41 EDT 2019


martinvonz updated this revision to Diff 14945.

REPOSITORY
  rHG Mercurial

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

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

AFFECTED FILES
  mercurial/copies.py

CHANGE DETAILS

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



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


More information about the Mercurial-devel mailing list