Bug 2773 - hg fetch: "IndexError: list index out of range" after fetch
Summary: hg fetch: "IndexError: list index out of range" after fetch
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: normal bug
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-20 11:17 UTC by Sedat Kapanoglu
Modified: 2012-05-13 05:10 UTC (History)
3 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sedat Kapanoglu 2011-04-20 11:17 UTC
Received following crash after a long running "hg fetch" operation without 
any additional parameters. 

d:\otherbranch>hg fetch
pulling from d:\mainbranch
searching for changes
adding changesets
adding manifests
adding file changes
added 240 changesets with 492 changes to 224 files (+1 heads)
** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit
** Mercurial Distributed SCM (version 1.8)
** Extensions loaded: fixfrozenexts, fetch, purge, color, progress, chu
Traceback (most recent call last):
  File "hg", line 36, in <module>
  File "mercurial\dispatch.pyo", line 16, in run
  File "mercurial\dispatch.pyo", line 36, in dispatch
  File "mercurial\dispatch.pyo", line 58, in _runcatch
  File "mercurial\dispatch.pyo", line 601, in _dispatch
  File "mercurial\dispatch.pyo", line 406, in runcommand
  File "mercurial\extensions.pyo", line 178, in wrap
  File "hgext\color.pyo", line 224, in colorcmd
  File "mercurial\dispatch.pyo", line 655, in _runcommand
  File "mercurial\dispatch.pyo", line 609, in checkargs
  File "mercurial\dispatch.pyo", line 598, in <lambda>
  File "mercurial\util.pyo", line 433, in check
  File "mercurial\extensions.pyo", line 133, in wrap
  File "mercurial\util.pyo", line 433, in check
  File "hgext\mq.pyo", line 3047, in mqcommand
  File "mercurial\util.pyo", line 433, in check
  File "hgext\fetch.pyo", line 88, in fetch
IndexError: list index out of range

After the crash the working dir seems up to date. (hg fetch doesn't do 
anything anymore so I don't think I'll be able to reproduce or test the 
issue). 

"hg verify" found no problems.
Comment 1 HG Bot 2011-12-30 18:00 UTC
Fixed by http://selenic.com/repo/hg/rev/6eb5bbaa1e73
Matt Mackall <mpm@selenic.com>
fetch: patch cornercase in children calculation (issue2773)

(please test the fix)
Comment 2 Bugzilla 2012-05-12 09:19 UTC

--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:19 EDT  ---

This bug was previously known as _bug_ 2773 at http://mercurial.selenic.com/bts/issue2773