Patchwork D1799: py3: use list() to get a list of items using dict.items()

login
register
mail settings
Submitter phabricator
Date Jan. 10, 2018, 11:05 p.m.
Message ID <3cb07cfeeb3e44f66a77340dc8762b3b@localhost.localdomain>
Download mbox | patch
Permalink /patch/26667/
State Not Applicable
Headers show

Comments

phabricator - Jan. 10, 2018, 11:05 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG3328d53254d9: py3: use list() to get a list of items using dict.items() (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1799?vs=4676&id=4782

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

AFFECTED FILES
  mercurial/patch.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, durin42
Cc: mercurial-devel

Patch

diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -2443,7 +2443,7 @@ 
     modified = sorted(modifiedset)
     added = sorted(addedset)
     removed = sorted(removedset)
-    for dst, src in copy.items():
+    for dst, src in list(copy.items()):
         if src not in ctx1:
             # Files merged in during a merge and then copied/renamed are
             # reported as copies. We want to show them in the diff as additions.