[Bug 5748] New: Unknown exception during commit

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Sun Nov 26 08:39:53 EST 2017


            Bug ID: 5748
           Summary: Unknown exception during commit
           Product: Mercurial
           Version: 4.4.1
          Hardware: PC
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: vit at uber.com
                CC: mercurial-devel at mercurial-scm.org

Hi, I'm getting following exception while trying to commit changes on fairly
large repo. (simply running: hg commit -m "Commit foo")
Not sure what or why this is happening, would be great to get some help.

** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.10 (default, Jul 15 2017, 17:16:57) [GCC 4.2.1 Compatible Apple
LLVM 9.0.0 (clang-900.0.31)]
** Mercurial Distributed SCM (version 4.4.1)
** Extensions loaded: convert, purge
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 41, in <module>
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 85, in
    status = (dispatch(req) or 0) & 255
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 173, in
    ret = _runcatch(req)
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 313, in
    return _callcatch(ui, _runcatchfunc)
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 321, in
    return scmutil.callcatch(ui, func)
  File "/Library/Python/2.7/site-packages/mercurial/scmutil.py", line 154, in
    return func()
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 303, in
    return _dispatch(req)
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 940, in
    cmdpats, cmdoptions)
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 701, in
    ret = _runcommand(ui, options, cmd, d)
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 948, in
    return cmdfunc()
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 937, in
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
  File "/Library/Python/2.7/site-packages/mercurial/util.py", line 1183, in
    return func(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/mercurial/commands.py", line 1501, in
    return _docommit(ui, repo, *pats, **opts)
  File "/Library/Python/2.7/site-packages/mercurial/commands.py", line 1584, in
    node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
  File "/Library/Python/2.7/site-packages/mercurial/cmdutil.py", line 3090, in
    return commitfunc(ui, repo, message, matcher, opts)
  File "/Library/Python/2.7/site-packages/mercurial/commands.py", line 1582, in
  File "/Library/Python/2.7/site-packages/mercurial/localrepo.py", line 142, in
    return orig(repo.unfiltered(), *args, **kwargs)
  File "/Library/Python/2.7/site-packages/mercurial/localrepo.py", line 1946,
in commit
    ret = self.commitctx(cctx, True)
  File "/Library/Python/2.7/site-packages/mercurial/localrepo.py", line 142, in
    return orig(repo.unfiltered(), *args, **kwargs)
  File "/Library/Python/2.7/site-packages/mercurial/localrepo.py", line 2013,
in commitctx
    trp, changed)
  File "/Library/Python/2.7/site-packages/mercurial/localrepo.py", line 1778,
in _filecommit
    if fparent2 != nullid or flog.cmp(fparent1, text) or meta:
  File "/Library/Python/2.7/site-packages/mercurial/filelog.py", line 101, in
    if self.renamed(node):
  File "/Library/Python/2.7/site-packages/mercurial/filelog.py", line 65, in
    return (m["copy"], revlog.bin(m["copyrev"]))
KeyError: 'copyrev'

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

More information about the Mercurial-devel mailing list