Abort: not a Mercurial bundle using Mercurial version 4.3.1+20170810


I have a problem when I try to push information into a Phabricator server.

My environment (client) is:

  • Operating system mac os High Sierra with:
  • Mercurial Distributed SCM (version 4.3.1+20170810)
  • Python 2.7.12

How I can solve this problem?

Thanks in advance for all informations concerning this error.

Best regards


The trace of the error is:

hg push --debug --traceback

sending hello command
sending between command
remote: 345
remote: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024
remote: 1
query 1; heads
sending batch command
searching for changes
all remote heads known locally
preparing listkeys for "phases"
sending listkeys command
received listkey for “phases”: 15 bytes
checking for updated bookmarks
preparing listkeys for "bookmarks"
sending listkeys command
received listkey for “bookmarks”: 0 bytes
sending branchmap command
sending branchmap command
preparing listkeys for "bookmarks"
sending listkeys command
received listkey for “bookmarks”: 0 bytes
1 changesets found
list of changesets:
sending unbundle command
bundle2-output-bundle: “HG20”, 4 parts total
bundle2-output-part: “replycaps” 155 bytes payload
bundle2-output-part: “check:heads” streamed payload
bundle2-output-part: “changegroup” (params: 1 mandatory) streamed payload
bundle2-output-part: “pushkey” (params: 4 mandatory) empty payload
error: invalid magic: ‘0\n’ (version ‘1\n’), should be 'HG’
Traceback (most recent call last):
File “/Library/Python/2.7/site-packages/mercurial/scmutil.py”, line 150, in callcatch
return func()
File “/Library/Python/2.7/site-packages/mercurial/dispatch.py”, line 292, in _runcatchfunc
return _dispatch(req)
File “/Library/Python/2.7/site-packages/mercurial/dispatch.py”, line 896, in _dispatch
cmdpats, cmdoptions)
File “/Library/Python/2.7/site-packages/mercurial/dispatch.py”, line 658, in runcommand
ret = _runcommand(ui, options, cmd, d)
File “/Library/Python/2.7/site-packages/mercurial/dispatch.py”, line 904, in _runcommand
return cmdfunc()
File “/Library/Python/2.7/site-packages/mercurial/dispatch.py”, line 893, in
d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File “/Library/Python/2.7/site-packages/mercurial/util.py”, line 1077, in check
return func(*args, **kwargs)
File “/Library/Python/2.7/site-packages/mercurial/commands.py”, line 4065, in push
File “/Library/Python/2.7/site-packages/mercurial/exchange.py”, line 478, in push
File “/Library/Python/2.7/site-packages/mercurial/exchange.py”, line 921, in pushbundle2
stream, [‘force’], pushop.remote.url())
File “/Library/Python/2.7/site-packages/mercurial/wireproto.py”, line 445, in unbundle
ret = bundle2.getunbundler(self.ui, stream)
File “/Library/Python/2.7/site-packages/mercurial/bundle2.py”, line 683, in getunbundler
raise error.Abort(
(‘not a Mercurial bundle’))
Abort: not a Mercurial bundle
abandon : not a Mercurial bundle
remote: abort: stream ended unexpectedly (got 0 bytes, expected 4)


I installed the version 4.3.3 of mercurial and my problem is solved.