[Python-apps-team] Bug#636396: mercurial: Cloning fails with: mpatch.mpatchError: patch cannot be decoded

Javi Merino cibervicho at gmail.com
Fri Aug 5 21:33:56 UTC 2011


On 02/08/11 22:31, Melanie Davis wrote:
> Package: mercurial
> Version: 1.9-1
> Severity: normal
> 
> "hg clone" fails with the error below. I tried several different online
>  archive with the same result. I was running python2.6. I then installed 
>  python 2.7.  It still failed with the same error.

As a general thing, don't override debian's default python. If the
python package symlinks python to python2.6 you should leave it as is.
In any case, mercurial should work with python2.6.

I've tried the clone command and it works ok for me in i386 using both
python2.6 and python2.7.  Can you paste your ~/.hgrc?  I wonder if it's
because an unsupported extension.

I've looked at the changelog for 1.9.1 and can't see anything related,
but can you please upgrade your mercurial and see if it is still
reproducible with mercurial-1.9.1-1?

Cheers,
Javi (Vicho)

> melanie at sheeva:~$ hg clone https://bitbucket.org/ellislab/codeigniter-reactor
> destination directory: codeigniter-reactor
> requesting all changes
> adding changesets
> transaction abort!
> rollback completed
> ** unknown exception encountered, please report by visiting
> **  http://mercurial.selenic.com/wiki/BugTracker
> ** Python 2.7.2+ (default, Jul  9 2011, 22:56:56) [GCC 4.6.1 20110611 (prerelease)]
> ** Mercurial Distributed SCM (version 1.9)
> ** Extensions loaded:
> Traceback (most recent call last):
>   File "/usr/bin/hg", line 38, in <module>
>     mercurial.dispatch.run()
>   File "/usr/lib/pymodules/python2.7/mercurial/dispatch.py", line 27, in run
>     sys.exit(dispatch(request(sys.argv[1:])))
>   File "/usr/lib/pymodules/python2.7/mercurial/dispatch.py", line 64, in dispatch
>     return _runcatch(req)
>   File "/usr/lib/pymodules/python2.7/mercurial/dispatch.py", line 87, in _runcatch
>     return _dispatch(req)
>   File "/usr/lib/pymodules/python2.7/mercurial/dispatch.py", line 675, in _dispatch
>     cmdpats, cmdoptions)
>   File "/usr/lib/pymodules/python2.7/mercurial/dispatch.py", line 454, in runcommand
>     ret = _runcommand(ui, options, cmd, d)
>   File "/usr/lib/pymodules/python2.7/mercurial/dispatch.py", line 729, in _runcommand
>     return checkargs()
>   File "/usr/lib/pymodules/python2.7/mercurial/dispatch.py", line 683, in checkargs
>     return cmdfunc()
>   File "/usr/lib/pymodules/python2.7/mercurial/dispatch.py", line 672, in <lambda>
>     d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
>   File "/usr/lib/pymodules/python2.7/mercurial/util.py", line 385, in check
>     return func(*args, **kwargs)
>   File "/usr/lib/pymodules/python2.7/mercurial/commands.py", line 1041, in clone
>     branch=opts.get('branch'))
>   File "/usr/lib/pymodules/python2.7/mercurial/hg.py", line 334, in clone
>     destrepo.clone(srcrepo, heads=revs, stream=stream)
>   File "/usr/lib/pymodules/python2.7/mercurial/localrepo.py", line 1946, in clone
>     return self.pull(remote, heads)
>   File "/usr/lib/pymodules/python2.7/mercurial/localrepo.py", line 1376, im pull
>     lock=lock)
>   File "/usr/lib/pymodules/python2.7/mercurial/localrepo.py", line 1741, in addchangegroup
>     if (cl.addgroup(source, csmap, trp) is None
>   File "/usr/lib/pymodules/python2.7/mercurial/revlog.py", line 1182, in addgroup
>     p1, p2, (baserev, delta), ifh, dfh)
>   File "/usr/lib/pymodules/python2.7/mercurial/revlog.py", line 1051, in _addrevision
>     cachedelta[1])
> mpatch.mpatchError: patch cannot be decoded
> 
> -- System Information:
> Debian Release: wheezy/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: armel (armv5tel)
> 
> Kernel: Linux 2.6.39-2-kirkwood
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages mercurial depends on:
> ii  libc6                        2.13-13     Embedded GNU C Library: Shared lib
> ii  mercurial-common             1.9-1       scalable distributed version contr
> ii  python                       2.6.7-2     interactive high-level object-orie
> ii  python-support               1.0.14      automated rebuilding support for P
> ii  ucf                          3.0025+nmu2 Update Configuration File: preserv
> 
> mercurial recommends no packages.
> 
> Versions of packages mercurial suggests:
> pn  kdiff3 |  <none>                         (no description available)
> pn  qct       <none>                         (no description available)
> ii  vim       2:7.3.154+hg~74503f6ee649-2+b1 Vi IMproved - enhanced vi editor
> pn  wish      <none>                         (no description available)
> 
> -- no debconf information
> 
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20110805/bf80c34e/attachment.pgp>


More information about the Python-apps-team mailing list