hg “stream ended unexpectedly” error on cloneing

2019-04-06 20:51发布

问题:

I'm trying to clone a bit repository from bitbucket via hg but I keep getting this error:

abort: stream ended unexpectedly (got 404093 bytes, expected 8706452)
mac:~ user$ hg clone https://user2@bitbucket.org/mine/test
http authorization required
realm: Bitbucket.org HTTP
user: user2
password: 
destination directory: test
requesting all changes
adding changesets
adding manifests
adding file changes
transaction abort!
rollback completed
abort: stream ended unexpectedly (got 404093 bytes, expected 8706452)

I have tried it twice now but both times it's given the same error. I have more than enough HDD space.

Any thoughts?

回答1:

Is it failing in the same spot every time? (404093 bytes) If so, then it sounds like there's something wrong on the server side, and you might want to ask them for help.

If its bombing in different places every time then I guess it would be the network.