Issue1285

Title hg glog Mercurial crash
Priority bug Status resolved
Superseder Nosy List djc, ostkamp, pmezard
Assigned To Topics

Created on 2008-09-01.21:35:34 by ostkamp, last changed 2008-09-15.08:06:02 by djc.

Messages
msg7126 (view) Author: djc Date: 2008-09-15.08:06:02
In main, resolving.
msg6910 (view) Author: pmezard Date: 2008-09-02.07:54:10
In crew-stable and crew as d76f64cd4cb2. Thanks for the report.
msg6906 (view) Author: ostkamp Date: 2008-09-01.21:35:34
hg glog crashes Mercurial, if executed outside of repo. This might be no
standard usecase, but still Mercurial should not crash.

Tested with Crew repo, version a04d8cadb6af.

hg init repo
cd repo
echo "line" > file
hg add file
hg commit -m "initial checkin"
cd ..
hg glog repo
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial@selenic.com
** Mercurial Distributed SCM (version a04d8cadb6af)
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 20, in <module>
    mercurial.dispatch.run()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 20,
in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 29,
in dispatch
    return _runcatch(u, args)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 45,
in _runcatch
    return _dispatch(ui, args)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 351,
in _dispatch
    return _dispatch(ui, ['--repository', guess] + fullargs)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 364,
in _dispatch
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 417,
in _runcommand
    return checkargs()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 373,
in checkargs
    return cmdfunc()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 356,
in <lambda>
    d = lambda: func(ui, repo, *args, **cmdoptions)
  File "/usr/local/lib/python2.5/site-packages/hgext/graphlog.py", line 227, in
graphlog
    for (rev, node, node_index, edges, n_columns, n_columns_diff) in grapher:
  File "/usr/local/lib/python2.5/site-packages/hgext/graphlog.py", line 92, in
filelog_grapher
    filerev = len(repo.file(path)) - 1
  File "/usr/local/lib/python2.5/site-packages/mercurial/localrepo.py", line
472, in file
    if f[0] == '/':
IndexError: string index out of range
History
Date User Action Args
2008-09-15 08:06:02djcsetstatus: testing -> resolved
nosy: + djc
messages: + msg7126
2008-09-02 07:54:10pmezardsetstatus: unread -> testing
assignedto: pmezard ->
messages: + msg6910
nosy: pmezard, ostkamp
2008-09-02 07:31:48pmezardsetassignedto: pmezard
nosy: pmezard, ostkamp
2008-09-02 06:18:21pmezardsetnosy: + pmezard
2008-09-01 21:35:34ostkampcreate