[Bug 6132] New: 'hg clone' failed with Mercurial 5.0 on Linux (Docker for Mac)

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Sun May 5 19:14:05 UTC 2019


https://bz.mercurial-scm.org/show_bug.cgi?id=6132

            Bug ID: 6132
           Summary: 'hg clone' failed with Mercurial 5.0 on Linux (Docker
                    for Mac)
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: rnarkkx at gmail.com
                CC: mercurial-devel at mercurial-scm.org

root at 6275fc1239e9:~# hg --version
Mercurial Distributed SCM (version 5.0)

root at 6275fc1239e9:~# hg clone https://bitbucket.org/pypy/pypy
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 3.7.2 (default, Mar 20 2019, 17:18:41) [Clang 8.0.0
(branches/release_80)]
** Mercurial Distributed SCM (version 5.0)
** Extensions loaded: 
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 43, in <module>
    dispatch.run()
  File "/usr/local/lib/python3.7/site-packages/mercurial/dispatch.py", line 99,
in run
    status = dispatch(req)
  File "/usr/local/lib/python3.7/site-packages/mercurial/dispatch.py", line
225, in dispatch
    ret = _runcatch(req) or 0
  File "/usr/local/lib/python3.7/site-packages/mercurial/dispatch.py", line
376, in _runcatch
    return _callcatch(ui, _runcatchfunc)
  File "/usr/local/lib/python3.7/site-packages/mercurial/dispatch.py", line
384, in _callcatch
    return scmutil.callcatch(ui, func)
  File "/usr/local/lib/python3.7/site-packages/mercurial/scmutil.py", line 167,
in callcatch
    return func()
  File "/usr/local/lib/python3.7/site-packages/mercurial/dispatch.py", line
367, in _runcatchfunc
    return _dispatch(req)
  File "/usr/local/lib/python3.7/site-packages/mercurial/dispatch.py", line
1021, in _dispatch
    cmdpats, cmdoptions)
  File "/usr/local/lib/python3.7/site-packages/mercurial/dispatch.py", line
756, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/local/lib/python3.7/site-packages/mercurial/dispatch.py", line
1030, in _runcommand
    return cmdfunc()
  File "/usr/local/lib/python3.7/site-packages/mercurial/dispatch.py", line
1018, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
  File "/usr/local/lib/python3.7/site-packages/mercurial/util.py", line 1680,
in check
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/mercurial/commands.py", line
1573, in clone
    depth=opts.get('depth') or None)
  File "/usr/local/lib/python3.7/site-packages/mercurial/hg.py", line 540, in
clone
    srcpeer = peer(ui, peeropts, source)
  File "/usr/local/lib/python3.7/site-packages/mercurial/hg.py", line 206, in
peer
    createopts=createopts).peer()
  File "/usr/local/lib/python3.7/site-packages/mercurial/hg.py", line 171, in
_peerorrepo
    createopts=createopts)
  File "/usr/local/lib/python3.7/site-packages/mercurial/httppeer.py", line
997, in instance
    inst = makepeer(ui, path)
  File "/usr/local/lib/python3.7/site-packages/mercurial/httppeer.py", line
961, in makepeer
    respurl, info = performhandshake(ui, url, opener, requestbuilder)
  File "/usr/local/lib/python3.7/site-packages/mercurial/httppeer.py", line
881, in performhandshake
    resp = sendrequest(ui, opener, req)
  File "/usr/local/lib/python3.7/site-packages/mercurial/httppeer.py", line
275, in sendrequest
    res = opener.open(req)
  File "/usr/local/lib/python3.7/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/usr/local/lib/python3.7/urllib/request.py", line 543, in _open
    '_open', req)
  File "/usr/local/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.7/site-packages/mercurial/url.py", line 401, in
https_open
    return self.do_open(self._makeconnection, req)
  File "/usr/local/lib/python3.7/site-packages/mercurial/keepalive.py", line
241, in do_open
    self._start_transaction(h, req)
  File "/usr/local/lib/python3.7/site-packages/mercurial/url.py", line 387, in
_start_transaction
    return keepalive.KeepAliveHandler._start_transaction(self, h, req)
  File "/usr/local/lib/python3.7/site-packages/mercurial/keepalive.py", line
348, in _start_transaction
    h.endheaders()
  File "/usr/local/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.7/http/client.py", line 1016, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.7/site-packages/mercurial/url.py", line 166, in
_sendfile
    orgsend(self, data)
  File "/usr/local/lib/python3.7/site-packages/mercurial/keepalive.py", line
618, in safesend
    self.connect()
  File "/usr/local/lib/python3.7/site-packages/mercurial/url.py", line 374, in
connect
    serverhostname=host)
  File "/usr/local/lib/python3.7/site-packages/mercurial/sslutil.py", line 359,
in wrapsocket
    settings = _hostsettings(ui, serverhostname)
  File "/usr/local/lib/python3.7/site-packages/mercurial/sslutil.py", line 261,
in _hostsettings
    ui.debug('using %s for CA file\n' % cafile)
TypeError: %b requires a bytes-like object, or an object that implements
__bytes__, not 'str'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list