Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • thg thg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 836
    • Issues 836
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mercurial
  • TortoiseHg
  • thgthg
  • Issues
  • #145

Closed
Open
Created Feb 22, 2011 by Bitbucket Importer@bitbucket_importerOwner

Error when selecting a merge revision in incoming() filter

Created originally on Bitbucket by datallah (Daniel Atallah)

When I select a merge revision from the incoming list and one of the merge parents is already present in my repo (so it doesn't appear in the filtered incoming list), the following traceback occurs.

{{{ #!python ** Please report this bug to http://bitbucket.org/tortoisehg/thg/issues ** Mercurial version (unknown). TortoiseHg version (1.9.3+117-a181cc240555) ** Command: ** CWD: c:\export\spare\thg\thg ** Extensions loaded: transplant, rebase, fetch, mq, histedit ** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] ** Windows version: (6, 1, 7600, 2, '') ** Processor architecture: x64 ** Qt-4.7.1 PyQt-4.8.3 Traceback (most recent call last): File "C:\export\spare\thg\thg\tortoisehg\hgqt\revdetails.py", line 208, in onFileRevSelected self.fileview.displayFile(file, rev, status) File "C:\export\spare\thg\thg\tortoisehg\hgqt\fileview.py", line 289, in displayFile ctx2 = self.repo[self._p_rev] File "C:\export\spare\thg\hg\mercurial\localrepo.py", line 206, in getitem return context.changectx(self, changeid) File "C:\export\spare\thg\hg\mercurial\context.py", line 25, in init self._node = self._repo.changelog.node(changeid) File "C:\export\spare\thg\hg\mercurial\revlog.py", line 312, in node return self.index[rev][7] IndexError: list index out of range

}}}

The obvious fix seems to be to wrap fileview.py:289 in a try/catch IndexError, but I feel like that might be masking the problem instead of fixing it (I don't fully understand the intent of the passed-in rev).

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking