mercurial/cmdutil.py
changeset 45037 0c40d2d151cb
parent 45036 c05ac059749f
child 45072 a56ba57c837d
equal deleted inserted replaced
45036:c05ac059749f 45037:0c40d2d151cb
  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 any(
  3440         and not any(
  3441             x.node() in bheads and x.branch() == branch for x in parents
  3441             p.node() in bheads and p.branch() == branch for p 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: