IndexError: list index out of range

Issue #2380 closed
Anonymous created an issue
** Mercurial version (2.4.2).  TortoiseHg version (2.6.2)
** Command: --nofork workbench
** CWD: D:\Projects\Mercurial\MOLDOVABES
** Encoding: cp1252
** Extensions loaded: mercurial_keyring
** Python version: 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x64
** Qt-4.8.0 PyQt-4.9.1
Traceback (most recent call last):
  File "tortoisehg\hgqt\repowidget.pyo", line 445, in setBundle
IndexError: list index out of range

Comments (4)

  1. Steve Borho

    Preventing a traceback there would be trivial; but it would be good to understand how to reproduce this, in order to test whether the same condition would cause a traceback later in the code.

    It seems pretty hard to reproduce. Somehow 'hg incoming' is giving you a bundle that, when applied, is adding no new changesets?

  2. Yuya Nishihara

    repowidget: replace pseudo "incoming()" filter by "bundle()" (refs #3535)

    Since e4537304eb8d, revset module knows the applied bundle file, so it can actually filter changesets by "bundle()" revset.

    repowidget.setRevisionSet() is called as a result of filterbar.runQuery(), so there's no need to mimic revset filter.

    Closes #2380 as revset[0] has been deleted.

    → <<cset b60b163d29da>>

  3. Log in to comment