Hg 1.3: AttributeError: 'filectx' object has no attribute 'hex'

Georg gwk.rko at googlemail.com
Mon Jul 6 05:00:03 CDT 2009


Hi,

at first sight this looks like a bug in 1.3.  Would anyone have a suggestion
how I could work around it, or fix it quickly?

Unfortunately a variation of this command is issued by the Mercurial Eclipse
plugin, so this becomes a show stopper for being able to use that plugin...

--
Regards,
Georg.

hunter[34]$ hg glog --template '{rev}' InitializeKnowledgeBase.xml
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 1.3)
** Extensions loaded: patchbomb, bookmarks, rebase, children, color, mq,
graphlog, hgview, graphviz, extdiff, transplant, interhg, hgk
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 27, in <module>
    mercurial.dispatch.run()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line
16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line
27, in dispatch
    return _runcatch(u, args)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line
43, in _runcatch
    return _dispatch(ui, args)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line
449, in _dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line
317, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line
501, in _runcommand
    return checkargs()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line
454, in checkargs
    return cmdfunc()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line
448, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/local/lib/python2.5/site-packages/mercurial/util.py", line 370,
in check
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.5/site-packages/hgext/graphlog.py", line 261,
in graphlog
    ascii(ui, asciiedges(fmtdag))
  File "/usr/local/lib/python2.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 "/usr/local/lib/python2.5/site-packages/hgext/graphlog.py", line 40,
in asciiedges
    for node, type, data, parents in nodes:
  File "/usr/local/lib/python2.5/site-packages/hgext/graphlog.py", line 32,
in asciiformat
    displayer.show(ctx)
  File "/usr/local/lib/python2.5/site-packages/mercurial/cmdutil.py", line
635, in show
    self._show(ctx, copies, props)
  File "/usr/local/lib/python2.5/site-packages/mercurial/cmdutil.py", line
888, in _show
    'node': ctx.hex(),
AttributeError: 'filectx' object has no attribute 'hex'
hunter[35]$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20090706/582d95c2/attachment.htm 


More information about the Mercurial mailing list