Mercurial ValueError:目录状态中溢出

Sam*_*zon 1 version-control mercurial

当我尝试执行hg status命令时,Mercurial提示我ValueError:目录状态错误溢出

hg loghg diff命令可以正常工作。

你有办法修复我的仓库吗?

hg status命令的输出

12:12 user@host ~/projects/nsr% hg st
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2]
** Mercurial Distributed SCM (version 3.9.1)
** Extensions loaded: extdiff, color, graphlog, rebase, strip, mq, shelve, churn, purge, record
Traceback (most recent call last):
  File "/usr/bin/hg", line 45, in <module>
    mercurial.dispatch.run()
.....
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 888, in wrapper
    return func(*args, **kwargs)
ValueError: overflow in dirstate
zsh: exit 1     hg st
Run Code Online (Sandbox Code Playgroud)

Sam*_*zon 5

最后,

我找到了解决方案,并使用以下命令修复了存储库:

hg debugrebuildstate -r tip
Run Code Online (Sandbox Code Playgroud)