Comments
Patch
@@ -4627,13 +4627,16 @@ def phase(ui, repo, *revs, **opts):
phases.advanceboundary(repo, targetphase, nodes)
if opts['force']:
phases.retractboundary(repo, targetphase, nodes)
finally:
lock.release()
- newdata = repo._phasecache.getphaserevs(repo)
- cl = repo.changelog
+ # moving revision from public to draft may hide them
+ # We have to check result on an unfiltered repository
+ unfi = repo.unfiltered()
+ newdata = repo._phasecache.getphaserevs(unfi)
changes = sum(o != newdata[i] for i, o in enumerate(olddata))
+ cl = unfi.changelog
rejected = [n for n in nodes
if newdata[cl.rev(n)] < targetphase]
if rejected:
ui.warn(_('cannot move %i changesets to a more permissive '
'phase, use --force\n') % len(rejected))