[issue1730] glog with --template fails

David Watson mercurial-bugs at selenic.com
Wed Jul 8 15:13:18 CDT 2009

New submission from David Watson <dwatson at mimvista.com>:

Since upgrading to 1.3, the following command now fails:
glog --template '*{rev}\n' somefile

I get this stacktrace:
  File "/usr/local/bin/hg", line 27, in <module>
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 16, in run
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 27, in dispatch
    return _runcatch(u, args)
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 43, in _runcatch
    return _dispatch(ui, args)
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 449, in _dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 317, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 501, in _runcommand
    return checkargs()
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 454, in checkargs
    return cmdfunc()
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 448, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/Library/Python/2.5/site-packages/mercurial/util.py", line 370, in check
    return func(*args, **kwargs)
  File "/Library/Python/2.5/site-packages/hgext/graphlog.py", line 261, in graphlog
    ascii(ui, asciiedges(fmtdag))
  File "/Library/Python/2.5/site-packages/hgext/graphlog.py", line 138, in ascii
    for (node_index, type, (node_ch, node_lines), edges, n_columns, n_columns_diff) in dag:
  File "/Library/Python/2.5/site-packages/hgext/graphlog.py", line 40, in asciiedges
    for node, type, data, parents in nodes:
  File "/Library/Python/2.5/site-packages/hgext/graphlog.py", line 32, in asciiformat
  File "/Library/Python/2.5/site-packages/mercurial/cmdutil.py", line 635, in show
    self._show(ctx, copies, props)
  File "/Library/Python/2.5/site-packages/mercurial/cmdutil.py", line 888, in _show
    'node': ctx.hex(),
AttributeError: 'filectx' object has no attribute 'hex'

This breaks the MercurialEclipse plugin's file history. It definitely worked on 1.2.1.

messages: 9932
nosy: QuercusMax
priority: urgent
status: unread
title: glog with --template fails

Mercurial issue tracker <mercurial-bugs at selenic.com>

More information about the Mercurial-devel mailing list