Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'm' #995

Open
stepancheg opened this issue Dec 18, 2024 · 0 comments
Open

KeyError: 'm' #995

stepancheg opened this issue Dec 18, 2024 · 0 comments

Comments

@stepancheg
Copy link
Contributor

I downloaded sapling, and a lot of commands fail. One of such failures is:

sl shelve
** Sapling SCM (version 0.2.20241203-120811-a2174689) has crashed:
Traceback (most recent call last):
  File "static:sapling", line 86, in run
    dispatch.run(args, fin, fout, ferr, ctx, skipprehooks)
  File "static:sapling.dispatch", line 161, in run
    status = (dispatch(req) or 0) & 255
              ^^^^^^^^^^^^^
  File "static:sapling.dispatch", line 344, in dispatch
    ret = _runcatch(req)
          ^^^^^^^^^^^^^^
  File "static:sapling.dispatch", line 528, in _runcatch
    return _callcatch(ui, req, _runcatchfunc)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.dispatch", line 537, in _callcatch
    return scmutil.callcatch(ui, req, func)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.scmutil", line 151, in callcatch
    return func()
           ^^^^^^
  File "static:sapling.dispatch", line 515, in _runcatchfunc
    return _dispatch(req)
           ^^^^^^^^^^^^^^
  File "static:sapling.dispatch", line 1083, in _dispatch
    ret = runcommand(
          ^^^^^^^^^^^
  File "static:sapling.ext.undo", line 176, in _runcommandwrapper
    result = orig(lui, repo, cmd, fullargs, *args)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.ext.undo", line 120, in origunsetpid
    return _orig(*args, **opts)
           ^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.ext.journal", line 82, in runcommand
    return orig(lui, repo, cmd, fullargs, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.dispatch", line 755, in runcommand
    ret = _runcommand(ui, options, cmd, d)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.dispatch", line 1134, in _runcommand
    return cmdfunc()
           ^^^^^^^^^
  File "static:sapling.dispatch", line 1082, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.util", line 1376, in check
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.util", line 1376, in check
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.ext.dirsync", line 142, in _bypassdirsync
    return orig(ui, repo, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.util", line 1376, in check
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.ext.shelve", line 1225, in shelvecmd
    return createcmd(ui, repo, pats, opts)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.ext.shelve", line 364, in createcmd
    return _docreatecmd(ui, repo, pats, opts)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.ext.shelve", line 498, in _docreatecmd
    node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.cmdutil", line 3826, in commit
    return commitfunc(ui, repo, message, matcher, opts)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.ext.shelve", line 427, in commitfunc
    return repo.commit(
           ^^^^^^^^^^^^
  File "static:sapling.extensions", line 641, in closure
    return func(*(args + a), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.ext.remotenames", line 308, in excommit
    res = orig(repo, *args, **opts)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.localrepo", line 2792, in commit
    cctx.markcommitted(ret)
  File "static:sapling.context", line 2224, in markcommitted
    super(workingctx, self).markcommitted(node)
  File "static:sapling.context", line 1862, in markcommitted
    self._repo.dirstate.delete(f)
  File "static:sapling.dirstate", line 557, in delete
    oldstate = self[f]
               ~~~~^^^
  File "static:sapling.dirstate", line 325, in __getitem__
    return self._map.get(key, ("?", 0, 0, 0))[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "static:sapling.treestate", line 162, in get
    entry = self._get(key)
            ^^^^^^^^^^^^^^
  File "static:sapling.eden_dirstate_map", line 163, in _get
    modefromflag[flag],
    ~~~~~~~~~~~~^^^^^^
KeyError: 'm'

There are git submodules in the repository, not sure if that's relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant