Bug 4905 - stack trace: hg log -r "wdir()^"
Summary: stack trace: hg log -r "wdir()^"
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: revset (show other bugs)
Version: default branch
Hardware: PC Linux
: normal bug
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-16 16:43 UTC by Jordi Gutiérrez Hermoso
Modified: 2017-10-15 00:00 UTC (History)
1 user (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jordi Gutiérrez Hermoso 2015-10-16 16:43 UTC
** Unknown exception encountered with possibly-broken third-party extension evolve
** which supports versions 3.4 of Mercurial.
** Please disable evolve and try your action again.
** If that fixes the bug please report it to http://bz.selenic.com/
** Python 2.7.9 (default, Mar  1 2015, 12:57:24) [GCC 4.9.2]
** Mercurial Distributed SCM (version 3.5.1+440-9af14071559d)
** Extensions loaded: evolve
Traceback (most recent call last):
  File "/home/jordi/coding/vcs/mercurial-source/hg", line 43, in <module>
    mercurial.dispatch.run()
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/dispatch.py", line 54, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/dispatch.py", line 116, in dispatch
    ret = _runcatch(req)
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/dispatch.py", line 187, in _runcatch
    return _dispatch(req)
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/dispatch.py", line 920, in _dispatch
    cmdpats, cmdoptions)
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/dispatch.py", line 679, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/dispatch.py", line 1051, in _runcommand
    return checkargs()
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/dispatch.py", line 1011, in checkargs
    return cmdfunc()
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/dispatch.py", line 917, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/util.py", line 801, in check
    return func(*args, **kwargs)
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/commands.py", line 4751, in log
    revs, expr, filematcher = cmdutil.getlogrevs(repo, pats, opts)
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/cmdutil.py", line 2134, in getlogrevs
    revs = _logrevs(repo, opts)
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/cmdutil.py", line 2078, in _logrevs
    revs = scmutil.revrange(repo, opts['rev'])
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/scmutil.py", line 735, in revrange
    return m(repo)
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/revset.py", line 2778, in mfunc
    result = getset(repo, subset, tree)
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/revset.py", line 370, in getset
    s = methods[x[0]](repo, subset, *x[1:])
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/revset.py", line 1576, in p1
    ps.add(cl.parentrevs(r)[0])
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/changelog.py", line 231, in parentrevs
    return super(changelog, self).parentrevs(rev)
  File "/home/jordi/coding/vcs/mercurial-source/mercurial/revlog.py", line 354, in parentrevs
    return self.index[rev][5:7]
IndexError: revlog index out of range
Comment 1 Bugzilla 2016-03-15 00:00 UTC
Bug was inactive for 150 days, archiving
Comment 2 Bugzilla 2016-08-13 00:00 UTC
Bug was inactive for 150 days, archiving
Comment 3 Bugzilla 2017-02-12 00:00 UTC
Bug was inactive for 182 days, archiving
Comment 4 HG Bot 2017-10-04 17:35 UTC
Fixed by https://mercurial-scm.org/repo/hg/rev/e8c043375b53
Pulkit Goyal <7895pulkit@gmail.com>
revset: make `hg log -r 'wdir()^'` work (issue4905)

This patch catches the WdirUnsupported exception to support wdir()^.

(please test the fix)
Comment 5 Bugzilla 2017-10-15 00:00 UTC
Bug was set to TESTING for 10 days, resolving