1. Jens Alfke
  2. Murky
Issue #132 new

Error while opening hg committed repository - 10.6 MAC OS X - 1.5 Hg

Anonymous created an issue

Uncaught exception: NSInternalInconsistencyException parent!=self

-[HgRevision setParent:] (in Murky) + 116
-[HgRepository _checkRevisions] (in Murky) + 1306
-[HgRepository _updateChangedDirs] (in Murky) + 199
__NSFireDelayedPerform (in Foundation) + 537
__CFRunLoopRun (in CoreFoundation) + 8059
CFRunLoopRunSpecific (in CoreFoundation) + 452
CFRunLoopRunInMode (in CoreFoundation) + 97
RunCurrentEventLoopInMode (in HIToolbox) + 392
ReceiveNextEventCommon (in HIToolbox) + 354
BlockUntilNextEventMatchingListInMode (in HIToolbox) + 81
_DPSNextEvent (in AppKit) + 847

Please report this bug (you can copy & paste the text).

Comments (4)

  1. Jens Alfke repo owner

    Weird. The exception must have been thrown by this code in HgRepository _checkRevisions:

        _currentRevision = curRevNo>=0 ?[nuRevisions objectAtIndex: curRevNo] :nil;
        _uncommittedRevision.parent = _currentRevision;
    

    ...which would imply that curRevNo is too large, pointing to the _uncommittedRevision at the end of nuRevisions.

    Anonymous: How exactly did you get this? Anything unusual about the repository?

  2. Anonymous

    I was getting the same issue on 0.7.2 with a repo and it's clone. Upgrading to 0.8.1 didn't fix it. hg = 1.5+20100307, OS X = 10.6.3

    I saw a comment about turning logging on in another similar issue, so here's all I found in the console:

    Logging mode 0 enabled in domains: {HgLog, HgRepository}
    PYTHONPATH = ''
    'hg' path = '/usr/local/bin/hg'
    Opened HgRepository[/Users/blah/repo1/]
    HgRepository: _checkRevisions: Tip changed from -1 to 71 (cur=71) ... updating revisions
    HgLog: Parsing...
    HgLog: took 0.0 sec to parse 71 revs
    *** Assertion failure in -[HgUncommittedRevision setParent:], /Volumes/snoog/Code/Murky/Source/HgRevision.m:297
    parent!=self
    Opened HgRepository[/Users/blah/repo2/]
    HgRepository: _checkRevisions: Tip changed from -1 to 50 (cur=50) ... updating revisions
    HgLog: Parsing...
    HgLog: took 0.0 sec to parse 50 revs
    *** Assertion failure in -[HgUncommittedRevision setParent:], /Volumes/snoog/Code/Murky/Source/HgRevision.m:297
    parent!=self
    
  3. Bill Garrison

    "How exactly did you get this? Anything unusual about the repository?"

    Murky throws this exception while idling in the background. I had Xcode in the foreground doing something else entirely. When I brought Murky to the foreground, the alert dialog was already presented.

    I believe the repo is a standard issue Hg repository. What kinds of things would make it unusual? It has no subrepos, is entirely self-contained, has less than 150 changesets, is 36 MB in size. It's a private repo or I'd post a URL. I'm using Mercurial 1.5.

    Mercurial Distributed SCM (version 1.5+20100307)

  4. Log in to comment