From patchwork Mon Nov 24 21:48:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [1,of,2] log: display closing-branch nodes as "_" (BC) From: =?utf-8?q?Jordi_Guti=C3=A9rrez_Hermoso?= X-Patchwork-Id: 6842 Message-Id: To: mercurial-devel@selenic.com Date: Mon, 24 Nov 2014 16:48:59 -0500 # HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1416865369 18000 # Mon Nov 24 16:42:49 2014 -0500 # Node ID eefc121a32a3e1ed848f603d062f20f2aff0cdbd # Parent a81c76106d9036060b3371f36b00ceefa5d60898 log: display closing-branch nodes as "_" (BC) In plain `hg log` there is no indication that a commit closes a branch. You can use hg log --debug, but this is too verbose. A simple idea copied from thg and other graphical viewers is to display the node for a closing-branch commit as a horizontal line. I think this technically is a BC if we consider the graphlog to be part of the stdout API, but I really can't imagine who the hell is parsing the graphlog to determine information about commits. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -1922,6 +1922,8 @@ def displaygraph(ui, dag, displayer, sho char = '@' elif ctx.obsolete(): char = 'x' + elif ctx.closesbranch(): + char = '_' copies = None if getrenamed and ctx.rev(): copies = []