[issue3384] qpush: list index out of range

Michael Ekstrand bugs at mercurial.selenic.com
Thu Apr 19 13:07:15 CDT 2012


New submission from Michael Ekstrand <michael at elehack.net>:

I have a patch queue that contains a patch which, when applied, produces the
following error

$ hg qpush -v --traceback
applying pref-refactor
patching file
lenskit-core/src/main/java/org/grouplens/lenskit/data/pref/IndexedPreference.java
patching file
lenskit-core/src/main/java/org/grouplens/lenskit/data/pref/MutableIndexedPreference.java
patching file
lenskit-core/src/main/java/org/grouplens/lenskit/data/pref/MutablePreference.java
patching file
lenskit-core/src/main/java/org/grouplens/lenskit/data/pref/Preference.java
patching file
lenskit-core/src/main/java/org/grouplens/lenskit/data/pref/SimpleIndexedPreference.java
list index out of range
Traceback (most recent call last):
  File
"/home/grad06/ekstrand/.local/lib/python2.7/site-packages/mercurial-2.2_rc-py2.7-linux-x86_64.egg/hgext/mq.py",
line 661, in patch
    files=files, eolmode=None)
  File
"/home/grad06/ekstrand/.local/lib/python2.7/site-packages/mercurial-2.2_rc-py2.7-linux-x86_64.egg/mercurial/patch.py",
line 1460, in patch
    similarity)
  File
"/home/grad06/ekstrand/.local/lib/python2.7/site-packages/mercurial-2.2_rc-py2.7-linux-x86_64.egg/mercurial/patch.py",
line 1417, in internalpatch
    return patchbackend(ui, backend, patchobj, strip, files, eolmode)
  File
"/home/grad06/ekstrand/.local/lib/python2.7/site-packages/mercurial-2.2_rc-py2.7-linux-x86_64.egg/mercurial/patch.py",
line 1402, in patchbackend
    eolmode=eolmode)
  File
"/home/grad06/ekstrand/.local/lib/python2.7/site-packages/mercurial-2.2_rc-py2.7-linux-x86_64.egg/mercurial/patch.py",
line 1264, in applydiff
    eolmode=eolmode)
  File
"/home/grad06/ekstrand/.local/lib/python2.7/site-packages/mercurial-2.2_rc-py2.7-linux-x86_64.egg/mercurial/patch.py",
line 1276, in _applydiff
    for state, values in iterhunks(fp):
  File
"/home/grad06/ekstrand/.local/lib/python2.7/site-packages/mercurial-2.2_rc-py2.7-linux-x86_64.egg/mercurial/patch.py",
line 1209, in iterhunks
    while afile != gitpatches[-1][0] and bfile != gitpatches[-1][1]:
IndexError: list index out of range
lenskit-core/src/main/java/org/grouplens/lenskit/data/pref/IndexedPreference.java
lenskit-core/src/main/java/org/grouplens/lenskit/data/pref/Preference.java
lenskit-core/src/main/java/org/grouplens/lenskit/data/pref/SimpleIndexedPreference.java
patch failed, rejects left in working dir
errors during apply, please fix and refresh pref-refactor

After this error, there are no .rej files.

The error can be triggered applying the attached patch to revision
370474066e2f of https://bitbucket.org/grouplens/lenskit. I have the error in
1.9.2, 2.1.2, and 2.2-rc.

----------
files: pref-refactor
messages: 19670
nosy: ekstrand
priority: bug
status: unread
title: qpush: list index out of range
topic: mq

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3384>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pref-refactor
Type: application/octet-stream
Size: 19688 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120419/0e92c0c4/attachment.obj>


More information about the Mercurial-devel mailing list