[issue2890] TypeError: bdiff() argument 2 must be string or read-only buffer, not buffer

kost BebiX bugs at mercurial.selenic.com
Fri Jul 8 09:04:26 CDT 2011


New submission from kost BebiX <k.bx at ya.ru>:

Mercurial 1.9, pypy (latest build for 07.07.2011)


(pypy)kost at kb:~/workspace/prom-default$ hg fetch
подтягивая из http://kyle.uaprom/hg/uaprom
searching for changes
adding changesets                                                                                                                                                                              
adding manifests
adding file changes                                                                                                                                                                            
transaction abort!
rollback completed
** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.7.1 (3476b9be3cec, Jul 08 2011, 02:10:59)[PyPy 1.5.0-alpha0 with 
GCC 4.4.3]
** Mercurial Distributed SCM (version 1.9)
** Extensions loaded: fetch, graphlog, color, progress, purge, hgcodesmell, 
rebase, transplant, extdiff, shelve, mq
Traceback (most recent call last):
  File "app_main.py", line 53, in run_toplevel
  File "/home/kost/playground/venvs/pypy/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/home/kost/playground/venvs/pypy/site-
packages/mercurial/dispatch.py", line 27, in run
    sys.exit(dispatch(request(sys.argv[1:])))
  File "/home/kost/playground/venvs/pypy/site-
packages/mercurial/dispatch.py", line 64, in dispatch
    return _runcatch(req)
  File "/home/kost/playground/venvs/pypy/site-
packages/mercurial/dispatch.py", line 87, in _runcatch
    return _dispatch(req)
  File "/home/kost/playground/venvs/pypy/site-
packages/mercurial/dispatch.py", line 675, in _dispatch
    cmdpats, cmdoptions)
  File "/home/kost/playground/venvs/pypy/site-
packages/mercurial/dispatch.py", line 454, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/home/kost/playground/venvs/pypy/site-
packages/mercurial/extensions.py", line 182, in wrap
    return wrapper(origfn, *args, **kwargs)
  File "/home/kost/playground/venvs/pypy/site-packages/hgext/color.py", line 
367, in colorcmd
    return orig(ui_, opts, cmd, cmdfunc)
  File "/home/kost/playground/venvs/pypy/site-
packages/mercurial/dispatch.py", line 729, in _runcommand
    return checkargs()
  File "/home/kost/playground/venvs/pypy/site-
packages/mercurial/dispatch.py", line 683, in checkargs
    return cmdfunc()
  File "/home/kost/playground/venvs/pypy/site-
packages/mercurial/dispatch.py", line 672, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/home/kost/playground/venvs/pypy/site-packages/mercurial/util.py", 
line 385, in check
    return func(*args, **kwargs)
  File "/home/kost/playground/venvs/pypy/site-
packages/mercurial/extensions.py", line 137, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/home/kost/playground/venvs/pypy/site-packages/mercurial/util.py", 
line 385, in check
    return func(*args, **kwargs)
  File "/home/kost/playground/venvs/pypy/site-packages/hgext/mq.py", line 
3218, in mqcommand
    return orig(ui, repo, *args, **kwargs)
  File "/home/kost/playground/venvs/pypy/site-packages/mercurial/util.py", 
line 385, in check
    return func(*args, **kwargs)
  File "/home/kost/playground/venvs/pypy/site-packages/hgext/fetch.py", line 
79, in fetch
    modheads = repo.pull(other, heads=revs)
  File "/home/kost/playground/venvs/pypy/site-
packages/mercurial/localrepo.py", line 1376, in pull
    lock=lock)
  File "/home/kost/playground/venvs/pypy/site-
packages/mercurial/localrepo.py", line 1790, in addchangegroup
    if fl.addgroup(source, revmap, trp) is None:
  File "/home/kost/playground/venvs/pypy/site-packages/mercurial/revlog.py", 
line 1182, in addgroup
    p1, p2, (baserev, delta), ifh, dfh)
  File "/home/kost/playground/venvs/pypy/site-packages/mercurial/revlog.py", 
line 1044, in _addrevision
    d = builddelta(prev)
  File "/home/kost/playground/venvs/pypy/site-packages/mercurial/revlog.py", 
line 1011, in builddelta
    delta = mdiff.textdiff(ptext, t)
TypeError: bdiff() argument 2 must be string or read-only buffer, not buffer

----------
messages: 16757
nosy: k_bx
priority: bug
status: unread
title: TypeError: bdiff() argument 2 must be string or read-only buffer, not buffer

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2890>
____________________________________________________


More information about the Mercurial-devel mailing list