[Bug 6028] New: evolve fails with mercurial.error.ProgrammingError: unsupported changeid '' of type <type 'str'>

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Thu Nov 29 14:40:13 UTC 2018


https://bz.mercurial-scm.org/show_bug.cgi?id=6028

            Bug ID: 6028
           Summary: evolve fails with mercurial.error.ProgrammingError:
                    unsupported changeid '' of type <type 'str'>
           Product: Mercurial
           Version: 4.8
          Hardware: Macintosh
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: evolution
          Assignee: bugzilla at mercurial-scm.org
          Reporter: tom at tomchuk.com
                CC: mercurial-devel at mercurial-scm.org,
                    pierre-yves.david at ens-lyon.org

Steps to reproduce:

uname -srvmpio
Darwin 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:31 PST 2018;
root:xnu-4903.231.4~1/RELEASE_X86_64 x86_64 i386 MacBookPro15,1 Darwin

hg --version
Mercurial Distributed SCM (version 4.8)
(see https://mercurial-scm.org for more information)

Copyright (C) 2005-2018 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

pip freeze | grep evolve
hg-evolve==8.3.2


hg up default
hg topics XXX
hg commit -m '...'
hg push -t XXX
hg up int
hg merge XXX
hg commit -m '...'
hg push -b int

# Other users of the repo merge to int in the meantime...
# It's decided to discard work on topic XXX and remove it from int

hg up XXX
hg prune -r t1
hg up int
hg prune -r s61 # Merge of XXX
hg up -r 'branch("int") and not troubled()'
hg stack

### target: int (branch)
s64$ merge YYY-4420 (unstable)
  ^ YYY-4420 Bug fix
s63^ merge (base unstable)
s63$ merge (unstable)
s61^ merge YYY-7421 into int (base current)
s62^ merge YYY-4420 to int (base unstable)
s62$ merge YYY-4420 to int (unstable)
  ^ YYY-4420 Fix broken tests, and malformatted score-function queries
s60^ merge YYY-7420 into int (base)
s61@ merge YYY-7421 into int (current)
  ^ YYY-7421 - remove old templates
s60^ merge YYY-7420 into int (base)
s60: merge YYY-7420 into int
  ^ YYY-7420 - clean up legacy files
s59^ int merge with YYY-3588 (base)
s59: int merge with YYY-3588
  ^ YYY-3588 fixes and changes from PR comments
s58^ merge YYY-4420 to int (base)

hg evolve --all

cannot solve instability of aaf846c182b1, skipping
** Unknown exception encountered with possibly-broken third-party extension
evolve
** which supports versions 4.7 of Mercurial.
** Please disable evolve and try your action again.
** If that fixes the bug please report it to https://bz.mercurial-scm.org/
** Python 2.7.15 (default, Jul 16 2018, 20:11:40) [GCC 4.2.1 Compatible Apple
LLVM 10.0.0 (clang-1000.10.38)]
** Mercurial Distributed SCM (version 4.8)
** Extensions loaded: extdiff, strip, mq, histedit, rebase, evolve, topic,
record, fsmonitor, journal, shelve
** ProgrammingError: unsupported changeid '' of type <type 'str'>
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 43, in <module>
    dispatch.run()
  File
"/usr/local/Cellar/mercurial/4.8/lib/python2.7/site-packages/mercurial/dispatch.py",
line 96, in run
    status = dispatch(req)
  File
"/usr/local/Cellar/mercurial/4.8/lib/python2.7/site-packages/mercurial/dispatch.py",
line 220, in dispatch
    ret = _runcatch(req) or 0
  File
"/usr/local/Cellar/mercurial/4.8/lib/python2.7/site-packages/mercurial/dispatch.py",
line 363, in _runcatch
    return _callcatch(ui, _runcatchfunc)
  File
"/usr/local/Cellar/mercurial/4.8/lib/python2.7/site-packages/mercurial/dispatch.py",
line 371, in _callcatch
    return scmutil.callcatch(ui, func)
  File
"/usr/local/Cellar/mercurial/4.8/lib/python2.7/site-packages/mercurial/scmutil.py",
line 166, in callcatch
    return func()
  File
"/usr/local/Cellar/mercurial/4.8/lib/python2.7/site-packages/mercurial/dispatch.py",
line 354, in _runcatchfunc
    return _dispatch(req)
  File
"/usr/local/Cellar/mercurial/4.8/lib/python2.7/site-packages/mercurial/dispatch.py",
line 994, in _dispatch
    cmdpats, cmdoptions)
  File
"/usr/local/Cellar/mercurial/4.8/lib/python2.7/site-packages/hgext/journal.py",
line 90, in runcommand
    return orig(lui, repo, cmd, fullargs, *args)
  File
"/usr/local/Cellar/mercurial/4.8/lib/python2.7/site-packages/mercurial/dispatch.py",
line 737, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File
"/usr/local/Cellar/mercurial/4.8/lib/python2.7/site-packages/mercurial/dispatch.py",
line 1003, in _runcommand
    return cmdfunc()
  File
"/usr/local/Cellar/mercurial/4.8/lib/python2.7/site-packages/mercurial/dispatch.py",
line 991, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
  File
"/usr/local/Cellar/mercurial/4.8/lib/python2.7/site-packages/mercurial/util.py",
line 1644, in check
    return func(*args, **kwargs)
  File
"/usr/local/Cellar/mercurial/4.8/lib/python2.7/site-packages/mercurial/util.py",
line 1644, in check
    return func(*args, **kwargs)
  File
"/usr/local/Cellar/mercurial/4.8/lib/python2.7/site-packages/hgext/mq.py", line
3631, in mqcommand
    return orig(ui, repo, *args, **kwargs)
  File
"/usr/local/Cellar/mercurial/4.8/lib/python2.7/site-packages/mercurial/util.py",
line 1644, in check
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/hgext3rd/evolve/evolvecmd.py",
line 1610, in evolve
    ret = _solveone(ui, repo, repo[ret[1]], evolvestate, dryrunopt,
  File
"/usr/local/Cellar/mercurial/4.8/lib/python2.7/site-packages/mercurial/localrepo.py",
line 1277, in __getitem__
    (changeid, type(changeid)))
mercurial.error.ProgrammingError: unsupported changeid '' of type <type 'str'>

I believe aaf846c182b1 was s63 at this point.

What did work was:

hg up s60
hg evolve --all
move:[39058] merge YYY-4420 to int
atop:[39048] merge YYY-7420 into int
move:[39060] merge
move:[39062] merge YYY-4420
working directory is now at e4b02a05d3a3

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list