-------- Original Message -------- Subject: Re: Bug#636396: mercurial: Cloning fails with: mpatch.mpatchError: patch cannot be decoded Date: Fri, 5 Aug 2011 14:54:43 -0700 (PDT) From: Mel Davis Reply-To: Mel Davis To: Javi Merino
I switched back to python 2.6 and am using mercurial 1.9.1. Same problem. I also tried a simple test using a local repo. This test failed with an "overflow in dirstate" error. The error messages are attached in the two files. I've heard rumors that the problems are either limited to or worse on ARM arch. My local test was: >hg init testrepo >cd testrepo >echo This is a test file >> file.txt >hg add >hg commit (This fails) Best regards, Melanie ------------------------------------------------------------------------ *From:* Javi Merino <cibervi...@gmail.com> *To:* Melanie Davis <mdavis...@yahoo.com>; 636...@bugs.debian.org *Sent:* Friday, August 5, 2011 5:33 PM *Subject:* Re: Bug#636396: mercurial: Cloning fails with: mpatch.mpatchError: patch cannot be decoded 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@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 > > >
melanie@sheeva:~$ hg --version Mercurial Distributed SCM (version 1.9.1) (see http://mercurial.selenic.com for more information) Copyright (C) 2005-2011 Matt Mackall and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. melanie@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.6.7 (r267:88850, Aug 3 2011, 14:54:07) [GCC 4.6.1 20110611 (prerelease)] ** Mercurial Distributed SCM (version 1.9.1) ** Extensions loaded: Traceback (most recent call last): File "/usr/bin/hg", line 38, in <module> mercurial.dispatch.run() File "/usr/lib/python2.6/dist-packages/mercurial/dispatch.py", line 27, in run sys.exit(dispatch(request(sys.argv[1:]))) File "/usr/lib/python2.6/dist-packages/mercurial/dispatch.py", line 64, in dispatch return _runcatch(req) File "/usr/lib/python2.6/dist-packages/mercurial/dispatch.py", line 87, in _runcatch return _dispatch(req) File "/usr/lib/python2.6/dist-packages/mercurial/dispatch.py", line 679, in _dispatch cmdpats, cmdoptions) File "/usr/lib/python2.6/dist-packages/mercurial/dispatch.py", line 454, in runcommand ret = _runcommand(ui, options, cmd, d) File "/usr/lib/python2.6/dist-packages/mercurial/dispatch.py", line 733, in _runcommand return checkargs() File "/usr/lib/python2.6/dist-packages/mercurial/dispatch.py", line 687, in checkargs return cmdfunc() File "/usr/lib/python2.6/dist-packages/mercurial/dispatch.py", line 676, in <lambda> d = lambda: util.checksignature(func)(ui, *args, **cmdoptions) File "/usr/lib/python2.6/dist-packages/mercurial/util.py", line 385, in check return func(*args, **kwargs) File "/usr/lib/python2.6/dist-packages/mercurial/commands.py", line 1041, in clone branch=opts.get('branch')) File "/usr/lib/python2.6/dist-packages/mercurial/hg.py", line 334, in clone destrepo.clone(srcrepo, heads=revs, stream=stream) File "/usr/lib/python2.6/dist-packages/mercurial/localrepo.py", line 1946, in clone return self.pull(remote, heads) File "/usr/lib/python2.6/dist-packages/mercurial/localrepo.py", line 1376, in pull lock=lock) File "/usr/lib/python2.6/dist-packages/mercurial/localrepo.py", line 1741, in addchangegroup if (cl.addgroup(source, csmap, trp) is None File "/usr/lib/python2.6/dist-packages/mercurial/revlog.py", line 1182, in addgroup p1, p2, (baserev, delta), ifh, dfh) File "/usr/lib/python2.6/dist-packages/mercurial/revlog.py", line 1051, in _addrevision cachedelta[1]) mpatch.mpatchError: patch cannot be decoded
melanie@sheeva:~$ hg init testrepo melanie@sheeva:~$ cd testrepo melanie@sheeva:~/testrepo$ echo This is a test file. >> file.txt melanie@sheeva:~/testrepo$ hg add adding file.txt melanie@sheeva:~/testrepo$ hg commit ** unknown exception encountered, please report by visiting ** http://mercurial.selenic.com/wiki/BugTracker ** Python 2.6.7 (r267:88850, Aug 3 2011, 14:54:07) [GCC 4.6.1 20110611 (prerelease)] ** Mercurial Distributed SCM (version 1.9.1) ** Extensions loaded: Traceback (most recent call last): File "/usr/bin/hg", line 38, in <module> mercurial.dispatch.run() File "/usr/lib/python2.6/dist-packages/mercurial/dispatch.py", line 27, in run sys.exit(dispatch(request(sys.argv[1:]))) File "/usr/lib/python2.6/dist-packages/mercurial/dispatch.py", line 64, in dispatch return _runcatch(req) File "/usr/lib/python2.6/dist-packages/mercurial/dispatch.py", line 87, in _runcatch return _dispatch(req) File "/usr/lib/python2.6/dist-packages/mercurial/dispatch.py", line 679, in _dispatch cmdpats, cmdoptions) File "/usr/lib/python2.6/dist-packages/mercurial/dispatch.py", line 454, in runcommand ret = _runcommand(ui, options, cmd, d) File "/usr/lib/python2.6/dist-packages/mercurial/dispatch.py", line 733, in _runcommand return checkargs() File "/usr/lib/python2.6/dist-packages/mercurial/dispatch.py", line 687, in checkargs return cmdfunc() File "/usr/lib/python2.6/dist-packages/mercurial/dispatch.py", line 676, in <lambda> d = lambda: util.checksignature(func)(ui, *args, **cmdoptions) File "/usr/lib/python2.6/dist-packages/mercurial/util.py", line 385, in check return func(*args, **kwargs) File "/usr/lib/python2.6/dist-packages/mercurial/commands.py", line 1092, in commit node = cmdutil.commit(ui, repo, commitfunc, pats, opts) File "/usr/lib/python2.6/dist-packages/mercurial/cmdutil.py", line 1189, in commit scmutil.match(repo[None], pats, opts), opts) File "/usr/lib/python2.6/dist-packages/mercurial/commands.py", line 1087, in commitfunc editor=e, extra=extra) File "/usr/lib/python2.6/dist-packages/mercurial/localrepo.py", line 942, in commit changes = self.status(match=match, clean=force) File "/usr/lib/python2.6/dist-packages/mercurial/localrepo.py", line 1197, in status if '.hgsub' in self.dirstate: File "/usr/lib/python2.6/dist-packages/mercurial/dirstate.py", line 197, in __contains__ return key in self._map File "/usr/lib/python2.6/dist-packages/mercurial/util.py", line 169, in __get__ result = self.func(obj) File "/usr/lib/python2.6/dist-packages/mercurial/dirstate.py", line 59, in _map self._read() File "/usr/lib/python2.6/dist-packages/mercurial/dirstate.py", line 237, in _read p = parsers.parse_dirstate(self._map, self._copymap, st) ValueError: overflow in dirstate