2016-07-22 13 views
0

私はMercuirial(3.6.1)プロジェクトを持っています。私がコミットしようとするたびに、私は次のエラーを取得します。mercurial repoでコミットできません

(project)➜ project hg:(default) ✗ hg commit -m "TICK-190" subfolder/models.py 


** unknown exception encountered, please report by visiting 
** https://mercurial-scm.org/wiki/BugTracker 
** Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] 
** Mercurial Distributed SCM (version 3.6.1) 
** Extensions loaded: 
Traceback (most recent call last): 
    File "/home/django/project/bin/hg", line 43, in <module> 
    mercurial.dispatch.run() 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 54, in run 
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 116, in dispatch 
    ret = _runcatch(req) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 187, in _runcatch 
    return _dispatch(req) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 920, in _dispatch 
    cmdpats, cmdoptions) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 679, in runcommand 
    ret = _runcommand(ui, options, cmd, d) 
    File "/home/django/plantbid/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 1051, in _runcommand 
    return checkargs() 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 1011, in checkargs 
    return cmdfunc() 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 917, in <lambda> 
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/util.py", line 801, in check 
    return func(*args, **kwargs) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/commands.py", line 1584, in commit 
    node = cmdutil.commit(ui, repo, commitfunc, pats, opts) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/cmdutil.py", line 2491, in commit 
    return commitfunc(ui, repo, message, matcher, opts) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/project.py", line 1578, in commitfunc 
    extra=extra) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/localrepo.py", line 64, in wrapper 
    return orig(repo.unfiltered(), *args, **kwargs) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/localrepo.py", line 1550, in commit 
    allowemptycommit = (wctx.branch() != wctx.p1().branch() 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/context.py", line 533, in branch 
    return encoding.tolocal(self._changeset[5].get("branch")) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/util.py", line 534, in __get__ 
    result = self.func(obj) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/context.py", line 502, in _changeset 
    return self._repo.changelog.read(self.rev()) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/changelog.py", line 338, in read 
    text = self.revision(node) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/revlog.py", line 1110, in revision 
    bins = self._chunks(chain, df=_df) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/revlog.py", line 1015, in _chunks 
    self._chunkraw(revs[0], revs[-1], df=df) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/revlog.py", line 990, in _chunkraw 
    return self._getchunk(start, length, df=df) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/revlog.py", line 981, in _getchunk 
    return self._loadchunk(offset, length, df=df) 
    File "/home/django/project/local/lib/python2.7/site-packages/mercurial/revlog.py", line 966, in _loadchunk 
    return util.buffer(d, offset - realoffset, length) 
ValueError: size must be zero or positive 

説明できる詳細はありません。私は問題なく自分のコードをコミットしていたので、突然このエラーが表示され始めました。私はファイルをコミットできません。私は問題なくgor hgの状態を尋ねることができます。

これは私が最近入手したレガシープロジェクトなので、可能な限り少し変更したいと思います。

UPDATE:

hg verify 

repository uses revlog format 1 
checking changesets 
[email protected]?: data length off by 1066185 bytes 
[email protected]?: rev 6801 points to nonexistent changeset -1 
(expected 6801) 
6802: unpacking changeset b087b38d690d: revlog decompress error: Error -5 while decompressing data: incomplete or truncated stream 
checking manifests 
[email protected]?: data length off by 1894563 bytes 
[email protected]?: rev 6729 points to nonexistent changeset -1       
[email protected]?: 000000000000 not in changesets          
[email protected]?: rev 6730 points to unexpected changeset 6802      
[email protected]?: 9363dc75d5fb not in changesets          
?: reading manifest delta 9363dc75d5fb: revlog decompress error: Error -5 while decompressing data: incomplete or truncated stream 
crosschecking files in changesets and manifests         
checking files 
plantbid/templates/[email protected]?: rev 8 points to unexpected changeset 6802 
(expected)                  
plantbid/templates/[email protected]?: 7e15c24e6859 not in manifests 
plantrfp/[email protected]: broken revlog! (index data/plantrfp/views.py.i is corrupted) 
warning: orphan revlog 'data/plantrfp/views.py.i'        
2266 files, 6803 changesets, 13181 total revisions 
3 warnings encountered! 
12 integrity errors encountered! 
(first damaged changeset appears to be 4684) 

答えて

1

あなたはMercurialの中にバグを発見したかもしれないが、あなたはバグレポートを提出する前に、まず、最新のMercurialバージョン(3.9)にアップデートしてみてください。 https://www.mercurial-scm.org

Re:更新:リポジトリに問題があるようです。たぶんあなたのハードドライブにエラーがありますか?これはリポジトリの唯一のコピーですか、それとも別の場所ですか?おそらく、壊れていないコピーを見つけようとするのが最もよい方法です。

関連する問題