mercurial/commands.py
changeset 22069 616a455b02ca
parent 22050 56ccd95b49c6
child 22070 c1ca47204590
equal deleted inserted replaced
22068:d34058dd3246 22069:616a455b02ca
  4581             # set phase
  4581             # set phase
  4582             if not revs:
  4582             if not revs:
  4583                 raise util.Abort(_('empty revision set'))
  4583                 raise util.Abort(_('empty revision set'))
  4584             nodes = [repo[r].node() for r in revs]
  4584             nodes = [repo[r].node() for r in revs]
  4585             olddata = repo._phasecache.getphaserevs(repo)[:]
  4585             olddata = repo._phasecache.getphaserevs(repo)[:]
  4586             phases.advanceboundary(repo, targetphase, nodes)
  4586             phases.advanceboundary(repo, tr, targetphase, nodes)
  4587             if opts['force']:
  4587             if opts['force']:
  4588                 phases.retractboundary(repo, targetphase, nodes)
  4588                 phases.retractboundary(repo, targetphase, nodes)
  4589             tr.close()
  4589             tr.close()
  4590         finally:
  4590         finally:
  4591             if tr is not None:
  4591             if tr is not None: