Crash with ProgrammingError: unsupported changeid 'xxxxx' of type <type 'str'>

Issue #5226 resolved
FunBitBucket
created an issue

Tortoise HG crashes when I try to commit to a separate branch ('anton'). The issue looks like a duplicate for #5162, but it's not resolved in 4.7.1 for me.

Here is the stack trace:

    #!python
    ** Mercurial version (4.7.1).  TortoiseHg version (4.7.1)
    ** Command: 
    ** CWD: C:\Program Files\TortoiseHg
    ** Encoding: cp932
    ** Extensions loaded: shelve, mercurial_extension_utils, mercurial_keyring, churn, tortoisehg.util.configitems
    ** Python version: 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
    ** Windows version: sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='')
    ** Processor architecture: x64
    ** Qt-5.9.2 PyQt-5.9.1 QScintilla-2.10.2.dev1711012104
    Traceback (most recent call last):
      File "tortoisehg\hgqt\commit.pyo", line 600, in mqPerformAction
      File "tortoisehg\hgqt\commit.pyo", line 973, in commit
      File "tortoisehg\hgqt\commit.pyo", line 572, in getBranchCommandLine
      File "tortoisehg\hgqt\thgrepo.pyo", line 772, in __getitem__
      File "mercurial\localrepo.pyo", line 856, in __getitem__
      File "mercurial\context.pyo", line 439, in __init__
    ProgrammingError: unsupported changeid 'anton' of type <type 'str'>

Comments (19)

  1. Benjamin Demolder

    Like Zoran mentioned above, I am getting the same error, and thus cannot commit anymore, however I can see someone made the same named branch in the past and then closed it. If this would help as well.

    But the fact that I cannot commit anymore is quite blocking... Is there a workaround for this? Or can I download a nightly myself? Or should I follow the guide to create my own 'nightly'?

    Apparently same as issue #5246

  2. FunBitBucket reporter

    Not sure if it's completely safe, but downgrade to 4.6.1 (latest stable version for now) solved the issue. Looking forward to 4.7.2 with the fix for this issue.

  3. Benjamin Demolder

    Yes, I did exactly the same, reverting to 4.6.1 solved the issue. But sadly I upgraded to 4.7.x because of a different issue in 4.6.1, no sure anymore which issue. So let us hope it does not happen again.

  4. Димитър Мазнеков

    The bug still exist - can't commit to default branch, when tip revision is in another:

    #!python
        ** Mercurial version (4.7.1).  TortoiseHg version (4.7.1)
        ** Command: 
        ** CWD: C:\Windows\system32
        ** Encoding: cp1251
        ** Extensions loaded: histedit, notify, rebase, relink, record, share, shelve, strip, transplant, hgflow, keyword, largefiles, extdiff, fetch, tortoisehg.util.configitems
        ** Python version: 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [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-5.9.2 PyQt-5.9.1 QScintilla-2.10.2.dev1711012104
        Traceback (most recent call last):
          File "tortoisehg\hgqt\commit.pyo", line 600, in mqPerformAction
          File "tortoisehg\hgqt\commit.pyo", line 973, in commit
          File "tortoisehg\hgqt\commit.pyo", line 572, in getBranchCommandLine
          File "tortoisehg\hgqt\thgrepo.pyo", line 772, in __getitem__
          File "hgext\largefiles\reposetup.pyo", line 47, in __getitem__
          File "mercurial\localrepo.pyo", line 856, in __getitem__
          File "mercurial\context.pyo", line 439, in __init__
        ProgrammingError: unsupported changeid 'default/Leveler' of type <type 'str'>
    
  5. Log in to comment