mercurial/exchangev2.py
changeset 45790 5d65e04b6a80
parent 45788 a5206e71c536
child 45942 89a2afe31e82
equal deleted inserted replaced
45789:09735cde6275 45790:5d65e04b6a80
    77     # are deferred. Do those now.
    77     # are deferred. Do those now.
    78 
    78 
    79     # Ensure all new changesets are draft by default. If the repo is
    79     # Ensure all new changesets are draft by default. If the repo is
    80     # publishing, the phase will be adjusted by the loop below.
    80     # publishing, the phase will be adjusted by the loop below.
    81     if csetres[b'added']:
    81     if csetres[b'added']:
    82         phases.registernew(repo, tr, phases.draft, csetres[b'added'])
    82         phases.registernew(
       
    83             repo, tr, phases.draft, [repo[n].rev() for n in csetres[b'added']]
       
    84         )
    83 
    85 
    84     # And adjust the phase of all changesets accordingly.
    86     # And adjust the phase of all changesets accordingly.
    85     for phasenumber, phase in phases.phasenames.items():
    87     for phasenumber, phase in phases.phasenames.items():
    86         if phase == b'secret' or not csetres[b'nodesbyphase'][phase]:
    88         if phase == b'secret' or not csetres[b'nodesbyphase'][phase]:
    87             continue
    89             continue