# HG changeset patch # User Matt Mackall # Date 1310593398 18000 # Node ID d7b424a0362720eef8d01b21447cd77fb402582a # Parent f79d47813b8b903f998e548f83043f141d68012c commit: suppress spurious new head message for duplicate commit (issue2893) diff -r f79d47813b8b -r d7b424a03627 mercurial/commands.py --- a/mercurial/commands.py Wed Jul 13 16:58:51 2011 -0500 +++ b/mercurial/commands.py Wed Jul 13 16:43:18 2011 -0500 @@ -1105,8 +1105,8 @@ ctx = repo[node] parents = ctx.parents() - if bheads and not [x for x in parents - if x.node() in bheads and x.branch() == branch]: + if (bheads and node not in bheads and not + [x for x in parents if x.node() in bheads and x.branch() == branch]): ui.status(_('created new head\n')) # The message is not printed for initial roots. For the other # changesets, it is printed in the following situations: