Show More
@@ -4574,8 +4574,10 b' def phase(ui, repo, *revs, **opts):' | |||
|
4574 | 4574 | ctx = repo[r] |
|
4575 | 4575 | ui.write('%i: %s\n' % (ctx.rev(), ctx.phasestr())) |
|
4576 | 4576 | else: |
|
4577 | tr = None | |
|
4577 | 4578 | lock = repo.lock() |
|
4578 | 4579 | try: |
|
4580 | tr = repo.transaction("phase") | |
|
4579 | 4581 | # set phase |
|
4580 | 4582 | if not revs: |
|
4581 | 4583 | raise util.Abort(_('empty revision set')) |
@@ -4584,7 +4586,10 b' def phase(ui, repo, *revs, **opts):' | |||
|
4584 | 4586 | phases.advanceboundary(repo, targetphase, nodes) |
|
4585 | 4587 | if opts['force']: |
|
4586 | 4588 | phases.retractboundary(repo, targetphase, nodes) |
|
4589 | tr.close() | |
|
4587 | 4590 | finally: |
|
4591 | if tr is not None: | |
|
4592 | tr.release() | |
|
4588 | 4593 | lock.release() |
|
4589 | 4594 | # moving revision from public to draft may hide them |
|
4590 | 4595 | # We have to check result on an unfiltered repository |
General Comments 0
You need to be logged in to leave comments.
Login now