[Bug 6444] New: `hg fix -w` raises a TypeError on py3(.8)

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Fri Nov 27 21:11:49 UTC 2020


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

            Bug ID: 6444
           Summary: `hg fix -w` raises a TypeError on py3(.8)
           Product: Mercurial
           Version: 5.5rc0
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: matt_harbison at yahoo.com
                CC: mercurial-devel at mercurial-scm.org
    Python Version: ---

This was in WSL, Ubuntu 18.04.

$ hg fix -w
** Unknown exception encountered with possibly-broken third-party extension
mercurial_keyring
** which supports versions unknown of Mercurial.
** Please disable mercurial_keyring and try your action again.
** If that fixes the bug please report it to
https://foss.heptapod.net/mercurial/mercurial_keyring/issues
** Python 3.8.0 (default, Oct 28 2019, 16:14:01) [GCC 8.3.0]
** Mercurial Distributed SCM (version 5.6)
** Extensions loaded: extdiff, evolve, topic, phabricator, rebase, absorb,
strip, show, blackbox, phabblocker, mercurial_keyring, fix, mq
Traceback (most recent call last):
  File "/home/mharbison/.local/bin/hg", line 43, in <module>
    dispatch.run()
  File
"/home/mharbison/.local/lib/python3.8/site-packages/mercurial/dispatch.py",
line 113, in run
    status = dispatch(req)
  File
"/home/mharbison/.local/lib/python3.8/site-packages/mercurial/dispatch.py",
line 303, in dispatch
    ret = _runcatch(req) or 0
  File
"/home/mharbison/.local/lib/python3.8/site-packages/mercurial/dispatch.py",
line 479, in _runcatch
    return _callcatch(ui, _runcatchfunc)
  File
"/home/mharbison/.local/lib/python3.8/site-packages/mercurial/dispatch.py",
line 488, in _callcatch
    return scmutil.callcatch(ui, func)
  File
"/home/mharbison/.local/lib/python3.8/site-packages/mercurial/scmutil.py", line
153, in callcatch
    return func()
  File
"/home/mharbison/.local/lib/python3.8/site-packages/mercurial/dispatch.py",
line 469, in _runcatchfunc
    return _dispatch(req)
  File
"/home/mharbison/.local/lib/python3.8/site-packages/mercurial/dispatch.py",
line 1232, in _dispatch
    return runcommand(
  File
"/home/mharbison/.local/lib/python3.8/site-packages/mercurial/dispatch.py",
line 917, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File
"/home/mharbison/.local/lib/python3.8/site-packages/mercurial/dispatch.py",
line 1244, in _runcommand
    return cmdfunc()
  File
"/home/mharbison/.local/lib/python3.8/site-packages/mercurial/dispatch.py",
line 1230, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
  File "/home/mharbison/.local/lib/python3.8/site-packages/mercurial/util.py",
line 1867, in check
    return func(*args, **kwargs)
  File "/home/mharbison/.local/lib/python3.8/site-packages/mercurial/util.py",
line 1867, in check
    return func(*args, **kwargs)
  File "/home/mharbison/.local/lib/python3.8/site-packages/hgext/mq.py", line
4222, in mqcommand
    return orig(ui, repo, *args, **kwargs)
  File "/home/mharbison/.local/lib/python3.8/site-packages/mercurial/util.py",
line 1867, in check
    return func(*args, **kwargs)
  File "/home/mharbison/.local/lib/python3.8/site-packages/hgext/fix.py", line
315, in fix
    for rev, path, filerevmetadata, newdata in results:
  File
"/home/mharbison/.local/lib/python3.8/site-packages/mercurial/worker.py", line
282, in _posixworker
    res = util.pickle.load(_blockingreader(key.fileobj))
TypeError: file must have 'read', 'readinto' and 'readline' attributes

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


More information about the Mercurial-devel mailing list