Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commit.py @ 45813: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 | 0428978bca22 |
children | 330c258fe7ca |
comparison
equal
deleted
inserted
replaced
45812:09735cde6275 | 45813:5d65e04b6a80 |
---|---|
103 # retract boundary do not alter parent changeset. | 103 # retract boundary do not alter parent changeset. |
104 # if a parent have higher the resulting phase will | 104 # if a parent have higher the resulting phase will |
105 # be compliant anyway | 105 # be compliant anyway |
106 # | 106 # |
107 # if minimal phase was 0 we don't need to retract anything | 107 # if minimal phase was 0 we don't need to retract anything |
108 phases.registernew(repo, tr, targetphase, [n]) | 108 phases.registernew(repo, tr, targetphase, [repo[n].rev()]) |
109 return n | 109 return n |
110 | 110 |
111 | 111 |
112 def _prepare_files(tr, ctx, error=False, origctx=None): | 112 def _prepare_files(tr, ctx, error=False, origctx=None): |
113 repo = ctx.repo() | 113 repo = ctx.repo() |