--- a/mercurial/scmutil.py Wed Mar 11 17:42:56 2020 +0100
+++ b/mercurial/scmutil.py Fri Dec 08 02:29:02 2017 +0100
@@ -2058,14 +2058,11 @@
pull/unbundle.
"""
origrepolen = tr.changes.get(b'origrepolen', len(repo))
- phasetracking = tr.changes.get(b'phases', {})
- if not phasetracking:
- return
- published = [
- rev
- for rev, (old, new) in pycompat.iteritems(phasetracking)
- if new == phases.public and rev < origrepolen
- ]
+ published = []
+ for revs, (old, new) in tr.changes.get(b'phases', []):
+ if new != phases.public:
+ continue
+ published.extend(rev for rev in revs if rev < origrepolen)
if not published:
return
msg = _(b'%d local changesets published\n')