diff mercurial/exchangev2.py @ 45790:5d65e04b6a80

phases: convert registernew users to use revision sets Differential Revision: https://phab.mercurial-scm.org/D9233
author Joerg Sonnenberger <joerg@bec.de>
date Tue, 20 Oct 2020 17:32:45 +0200
parents a5206e71c536
children 89a2afe31e82
line wrap: on
line diff
--- a/mercurial/exchangev2.py	Mon Oct 19 02:54:12 2020 +0200
+++ b/mercurial/exchangev2.py	Tue Oct 20 17:32:45 2020 +0200
@@ -79,7 +79,9 @@
     # Ensure all new changesets are draft by default. If the repo is
     # publishing, the phase will be adjusted by the loop below.
     if csetres[b'added']:
-        phases.registernew(repo, tr, phases.draft, csetres[b'added'])
+        phases.registernew(
+            repo, tr, phases.draft, [repo[n].rev() for n in csetres[b'added']]
+        )
 
     # And adjust the phase of all changesets accordingly.
     for phasenumber, phase in phases.phasenames.items():