summary: show if commit will be from a closed head
authorGilles Moris <gilles.moris@free.fr>
Mon, 10 May 2010 22:44:06 +0200
changeset 11165 e8915e19205a
parent 11164 e84600b0d81b
child 11166 7613832a80be
summary: show if commit will be from a closed head
mercurial/commands.py
--- a/mercurial/commands.py	Mon May 10 08:53:06 2010 +0200
+++ b/mercurial/commands.py	Mon May 10 22:44:06 2010 +0200
@@ -3154,6 +3154,9 @@
         t += _(' (merge)')
     elif branch != parents[0].branch():
         t += _(' (new branch)')
+    elif (parents[0].extra().get('close') and
+          pnode in repo.branchheads(branch, closed=True)):
+        t += _(' (head closed)')
     elif (not st[0] and not st[1] and not st[2] and not st[7]):
         t += _(' (clean)')
         cleanworkdir = True