[Bug 5316] New: list index out of range in hg update or commit

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Sat Jul 30 17:14:32 EDT 2016


https://bz.mercurial-scm.org/show_bug.cgi?id=5316

            Bug ID: 5316
           Summary: list index out of range in hg update or commit
           Product: Mercurial
           Version: 3.8.3
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at selenic.com
          Reporter: pblemel at hotmail.com
                CC: mercurial-devel at selenic.com

I have (what I think is) a simple repository. hg has started throwing the
following exceptions from Cygwin after upgrading to Win10.

$ hg update
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.10 (default, Jun  1 2015, 18:05:38) [GCC 4.9.2]
** Mercurial Distributed SCM (version 3.8.3)
** Extensions loaded:
Traceback (most recent call last):
  File "/usr/bin/hg", line 43, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 59, in
run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 125, in
dispatch
    ret = _runcatch(req)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 204, in
_runcatch
    return _dispatch(req)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 887, in
_dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 632, in
runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 1017, in
_runcommand
    return checkargs()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 978, in
checkargs
    return cmdfunc()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 884, in
<lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/python2.7/site-packages/mercurial/util.py", line 1005, in
check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/mercurial/commands.py", line 7187, in
update
    return hg.updatetotally(ui, repo, rev, brev, clean=clean, check=check)
  File "/usr/lib/python2.7/site-packages/mercurial/hg.py", line 728, in
updatetotally
    ret = _update(repo, checkout)
  File "/usr/lib/python2.7/site-packages/mercurial/hg.py", line 681, in update
    stats = updaterepo(repo, node, False)
  File "/usr/lib/python2.7/site-packages/mercurial/hg.py", line 677, in
updaterepo
    labels=['working copy', 'destination'])
  File "/usr/lib/python2.7/site-packages/mercurial/merge.py", line 1467, in
update
    ms = mergestate.read(repo)
  File "/usr/lib/python2.7/site-packages/mercurial/merge.py", line 95, in read
    ms._read()
  File "/usr/lib/python2.7/site-packages/mercurial/merge.py", line 167, in
_read
    extras[extraparts[i]] = extraparts[i + 1]
IndexError: list index out of range


$ hg commit
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.10 (default, Jun  1 2015, 18:05:38) [GCC 4.9.2]
** Mercurial Distributed SCM (version 3.8.3)
** Extensions loaded:
Traceback (most recent call last):
  File "/usr/bin/hg", line 43, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 59, in
run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 125, in
dispatch
    ret = _runcatch(req)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 204, in
_runcatch
    return _dispatch(req)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 887, in
_dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 632, in
runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 1017, in
_runcommand
    return checkargs()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 978, in
checkargs
    return cmdfunc()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 884, in
<lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/python2.7/site-packages/mercurial/util.py", line 1005, in
check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/mercurial/commands.py", line 1682, in
commit
    return _docommit(ui, repo, *pats, **opts)
  File "/usr/lib/python2.7/site-packages/mercurial/commands.py", line 1771, in
_docommit
    node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
  File "/usr/lib/python2.7/site-packages/mercurial/cmdutil.py", line 2621, in
commit
    return commitfunc(ui, repo, message, matcher, opts)
  File "/usr/lib/python2.7/site-packages/mercurial/commands.py", line 1765, in
commitfunc
    extra=extra)
  File "/usr/lib/python2.7/site-packages/mercurial/localrepo.py", line 104, in
wrapper
    return orig(repo.unfiltered(), *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/mercurial/localrepo.py", line 1614, in
commit
    ms = mergemod.mergestate.read(self)
  File "/usr/lib/python2.7/site-packages/mercurial/merge.py", line 95, in read
    ms._read()
  File "/usr/lib/python2.7/site-packages/mercurial/merge.py", line 167, in
_read
    extras[extraparts[i]] = extraparts[i + 1]
IndexError: list index out of range

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list