comparison mercurial/cmdutil.py @ 24216:4bb348ae43cb

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.
author Jordi Guti?rrez Hermoso <jordigh@octave.org>
date Mon, 24 Nov 2014 16:42:49 -0500
parents e0c1328df872
children 02d7b5cd373b
comparison
equal deleted inserted replaced
24215:feddc5284724 24216:4bb348ae43cb
1913 char = 'o' 1913 char = 'o'
1914 if ctx.node() in showparents: 1914 if ctx.node() in showparents:
1915 char = '@' 1915 char = '@'
1916 elif ctx.obsolete(): 1916 elif ctx.obsolete():
1917 char = 'x' 1917 char = 'x'
1918 elif ctx.closesbranch():
1919 char = '_'
1918 copies = None 1920 copies = None
1919 if getrenamed and ctx.rev(): 1921 if getrenamed and ctx.rev():
1920 copies = [] 1922 copies = []
1921 for fn in ctx.files(): 1923 for fn in ctx.files():
1922 rename = getrenamed(fn, ctx.rev()) 1924 rename = getrenamed(fn, ctx.rev())