hgext/closehead.py
changeset 44452 9d2b2df2c2ba
parent 43077 687b865b95ad
child 48116 5ced12cfa41b
equal deleted inserted replaced
44449:ff72bd52d56a 44452:9d2b2df2c2ba
    74         raise error.Abort(_(b'no revisions specified'))
    74         raise error.Abort(_(b'no revisions specified'))
    75 
    75 
    76     heads = []
    76     heads = []
    77     for branch in repo.branchmap():
    77     for branch in repo.branchmap():
    78         heads.extend(repo.branchheads(branch))
    78         heads.extend(repo.branchheads(branch))
    79     heads = set(repo[h].rev() for h in heads)
    79     heads = {repo[h].rev() for h in heads}
    80     for rev in revs:
    80     for rev in revs:
    81         if rev not in heads:
    81         if rev not in heads:
    82             raise error.Abort(_(b'revision is not an open head: %d') % rev)
    82             raise error.Abort(_(b'revision is not an open head: %d') % rev)
    83 
    83 
    84     message = cmdutil.logmessage(ui, opts)
    84     message = cmdutil.logmessage(ui, opts)