[issue2514] "mpatch.mpatchError: patch cannot be decoded"

clino bugs at mercurial.selenic.com
Tue Nov 23 06:39:50 UTC 2010


New submission from clino <zhangchunlin at gmail.com>:

I use hg in a android project( 120k file/directories,1.2GBytes),I use
apache+mod_wsgi.But when I clone this project I got an error:
(I try with hg command line twice but all fail,and tortoisehg twice and all
failed,my version: TortoiseHg对话框(版本 1.1.5), Mercurial(版本 1.7.1) )
-------------------------
err msg:
** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3]
** 分布式软件配置管理工具 - 水银 (版本 1.7.1)
** 已加载的扩展: bookmarks, mercurial_keyring, rebase, hgsubversion
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/usr/local/lib/python2.6/dist-packages/mercurial/dispatch.py", line
16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/local/lib/python2.6/dist-packages/mercurial/dispatch.py", line
36, in dispatch
    return _runcatch(u, args)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/dispatch.py", line
58, in _runcatch
    return _dispatch(ui, args)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/dispatch.py", line
590, in _dispatch
    cmdpats, cmdoptions)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/dispatch.py", line
401, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/dispatch.py", line
641, in _runcommand
    return checkargs()
  File "/usr/local/lib/python2.6/dist-packages/mercurial/dispatch.py", line
595, in checkargs
    return cmdfunc()
  File "/usr/local/lib/python2.6/dist-packages/mercurial/dispatch.py", line
588, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/util.py", line 427,
in check
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/extensions.py",
line 130, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/util.py", line 427,
in check
    return func(*args, **kwargs)
  File "/home/zhangclb/hgsubversion/hgsubversion/wrappers.py", line 446, in
clone
    orig(ui, source, dest, **opts)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/util.py", line 427,
in check
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/commands.py", line
736, in clone
    branch=opts.get('branch'))
  File "/usr/local/lib/python2.6/dist-packages/mercurial/extensions.py",
line 175, in wrap
    return wrapper(origfn, *args, **kwargs)
  File "/home/zhangclb/hgsubversion/hgsubversion/wrappers.py", line 437, in
hgclonewrapper
    data['srcrepo'], data['dstrepo'] = orig(ui, origsource, dest, **opts)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/hg.py", line 337,
in clone
    dest_repo.clone(src_repo, heads=revs, stream=stream)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/localrepo.py", line
1880, in clone
    return self.pull(remote, heads)
  File "/home/zhangclb/hgsubversion/hgsubversion/svnrepo.py", line 50, in
wrapper
    return original(*args, **opts)
  File "/usr/local/lib/python2.6/dist-packages/hgext/bookmarks.py", line
303, in pull
    result = super(bookmark_repo, self).pull(remote, heads, force)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/localrepo.py", line
1289, in pull
    return self.addchangegroup(cg, 'pull', remote.url(), lock=lock)
  File "/usr/local/lib/python2.6/dist-packages/hgext/bookmarks.py", line
353, in addchangegroup
    result = super(bookmark_repo, self).addchangegroup(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/localrepo.py", line
1733, in addchangegroup
    if fl.addgroup(source, revmap, trp) is None:
  File "/usr/local/lib/python2.6/dist-packages/mercurial/revlog.py", line
1381, in addgroup
    p1, p2, (chainrev, delta), ifh, dfh)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/revlog.py", line
1220, in _addrevision
    cachedelta[1])
mpatch.mpatchError: patch cannot be decoded

----------
messages: 14487
nosy: clino
priority: critical
status: unread
title: "mpatch.mpatchError: patch cannot be decoded"

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


More information about the Mercurial-devel mailing list