mercurial/cmdutil.py
changeset 45036 c05ac059749f
parent 44861 065421e12248
child 45037 0c40d2d151cb
equal deleted inserted replaced
45035:3862de62d5cf 45036:c05ac059749f
  3435 
  3435 
  3436     if (
  3436     if (
  3437         not opts.get(b'amend')
  3437         not opts.get(b'amend')
  3438         and bheads
  3438         and bheads
  3439         and node not in bheads
  3439         and node not in bheads
  3440         and not [
  3440         and not any(
  3441             x for x in parents if x.node() in bheads and x.branch() == branch
  3441             x.node() in bheads and x.branch() == branch for x in parents
  3442         ]
  3442         )
  3443     ):
  3443     ):
  3444         repo.ui.status(_(b'created new head\n'))
  3444         repo.ui.status(_(b'created new head\n'))
  3445         # The message is not printed for initial roots. For the other
  3445         # The message is not printed for initial roots. For the other
  3446         # changesets, it is printed in the following situations:
  3446         # changesets, it is printed in the following situations:
  3447         #
  3447         #