Closed mping closed 14 years ago
I also have this problem pushing a simple test repro
I had this problem also when pushing on a windows box, but on an Ubuntu 9.04 box it worked fine.
Please reopen this if you can get a test repo with the updated version I just pushed.
ok tks
I appear to be having this exact problem right now, I'm using the most recent head from schacon's repo :/
I had the same exception with the most recent version. I removed .hg/git and git-mapfile and the problem went away. Apparently this is the remains of a failed operation.
I'm having trouble pushing to a remote git repo:
C:\Devel\Java\workspace\harmonizer.hg>hg gfetch pulling from git url fetching from : origin exporting git objects at: 0/242 converting revision 0 * unknown exception encountered, details follow * report bug details to http://www.selenic.com/mercurial/bts * or mercurial@selenic.com * Mercurial Distributed SCM (version 1.2.1) \ Extensions loaded: convert, hg-git, win32text Traceback (most recent call last): File "hg", line 27, in
File "mercurial\dispatch.pyc", line 16, in run
File "mercurial\dispatch.pyc", line 25, in dispatch
File "mercurial\dispatch.pyc", line 41, in _runcatch
File "mercurial\dispatch.pyc", line 372, in _dispatch
File "mercurial\dispatch.pyc", line 247, in runcommand
File "mercurial\dispatch.pyc", line 417, in _runcommand
File "mercurial\dispatch.pyc", line 377, in checkargs
File "mercurial\dispatch.pyc", line 371, in
File "mercurial\util.pyc", line 718, in check
File "C:\Devel\Mercurial\extensions\hg-gitinit.py", line 87, in gfetch
git.fetch(remote_name)
File "C:\Devel\Mercurial\extensions\hg-git\git_handler.py", line 123, in fetch
self.export_git_objects()
File "C:\Devel\Mercurial\extensions\hg-git\git_handler.py", line 204, in export_git_objects
pgit_sha, already_written = self.export_hg_commit(rev)
File "C:\Devel\Mercurial\extensions\hg-git\git_handler.py", line 232, in export_hg_commit
tree_sha, renames = self.write_git_tree(ctx)
File "C:\Devel\Mercurial\extensions\hg-git\git_handler.py", line 297, in write_git_tree
blob_sha = self.git.write_blob(fctx.data()) # writing new blobs to git
File "C:\Devel\Mercurial\extensions\hg-git\dulwich\repo.py", line 339, in write_blob
sha = self.write_object('blob', contents)
File "C:\Devel\Mercurial\extensions\hg-git\dulwich\repo.py", line 396, in write_object
if not git_hex_sha in self.object_store:
File "C:\Devel\Mercurial\extensions\hg-git\dulwich\object_store.py", line 132, in contains
ret = self._get_shafile(sha)
File "C:\Devel\Mercurial\extensions\hg-git\dulwich\object_store.py", line 172, in _get_shafile
return ShaFile.from_file(path)
File "C:\Devel\Mercurial\extensions\hg-git\dulwich\objects.py", line 179, in from_file
shafile = cls._parse_file(map)
File "C:\Devel\Mercurial\extensions\hg-git\dulwich\objects.py", line 161, in _parse_file
return cls._parse_legacy_object(map)
File "C:\Devel\Mercurial\extensions\hg-git\dulwich\objects.py", line 93, in _parse_legacy_object
text = _decompress(map)
File "C:\Devel\Mercurial\extensions\hg-git\dulwich\objects.py", line 51, in _decompress
dcomped = dcomp.decompress(string)
zlib.error: Error -3 while decompressing: incorrect data check