diff -r 649d3ac37a12 -r d783f945a701 mercurial/phases.py --- a/mercurial/phases.py Sun Oct 06 19:25:18 2019 -0400 +++ b/mercurial/phases.py Mon Oct 07 00:04:04 2019 -0400 @@ -673,7 +673,7 @@ # build list from dictionary draftroots = [] nodemap = repo.changelog.nodemap # to filter unknown nodes - for nhex, phase in roots.iteritems(): + for nhex, phase in pycompat.iteritems(roots): if nhex == b'publishing': # ignore data related to publish option continue node = bin(nhex)