[PATCH 2 of 2] setup: call identify directly from mercurial.commands

Martin Geisler mg at daimi.au.dk
Fri Feb 13 03:03:47 CST 2009


Gilles Moris <gilles.moris at free.fr> writes:

> On Thu February 12 2009 23:58:08 Martin Geisler wrote:
>> Could you try it in an interactive session, something like this:
>> 
>> >>> import mmap
>> >>> devzero = file("/dev/zero")
>> >>> m = mmap.mmap(devzero.fileno(), 10, mmap.MAP_PRIVATE)
>> >>> m.write("hello")
>> >>> m.move(5, 0, 5)
>> >>> m[:]
>> 'hellohello'
>
> It fails as well, with the same error:
> ValueError: source or destination out of range.

Hmm, could you try with different source and destination offsets to
see if anything works at all?

> However, you will found the following even more interresting.
> I had recompiled several versions of python in addition of the standard
> python 2.4.3 installed by default. I have repeated the same commands:
> - python 2.3.6 recompiled: fails
> - python 2.4.3 FC5: fails
> - python 2.4.4 recompiled: succeeds
> - python 2.5.2 recompiled: succeeds
>
> Note that this is 64 bits python binaries. It could be worth testing
> on 32 bits version prior 2.4.4 if it's working.

I've now tested it succesfully on Python 2.4.3 on 32 bit Red Hat
Enterprise Linux Client release 5.3 (Tikanga).

I then tested it succesfully on Python 2.2.3 and Python 2.3.5, both
running on 32 bit Debian 3.1.

So I believe something is wacky about your system :-/

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.


More information about the Mercurial-devel mailing list