Commit b4cadd04 authored by Paul Morelle's avatar Paul Morelle
Browse files

font-size: allow specifying the size of text in nodes

parent 58839c3e93fb
......@@ -88,6 +88,7 @@ if not util.safehasattr(context.basectx, 'phasedivergent'):
('T', 'template', b'{rev}', _('display with template'), _('TEMPLATE')),
('', 'big', True, _('show big nodes')),
('', 'arrowhead', b'', _('show arrow heads')),
('', 'font-size', None, _('font size')),
('', 'obsarrowhead', b'', _('show obsolete arrow heads')),
('', 'public', b'', _('show all changesets as public')),
('', 'dot-output', b'',
......@@ -116,6 +117,8 @@ def docgraph(ui, repo, *revs, **opts):
basenargs = DEFAULT_NODE_ARGS.copy()
basenargs['width'] = size
basenargs['height'] = size
if 'font_size' in opts:
basenargs['fontsize'] = opts['font_size']
# Order using the rankdir passed
graph.graph_attr['rankdir'] = opts['rankdir']
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment