[PATCH 2 of 3] obsolete: append new markers to obsstore file instead of rewriting everything

Eduard-Cristian Stefan alexandrul.ct at gmail.com
Sun Jul 15 17:01:21 CDT 2012


On 2012-07-16 00:12, Adrian Buehlmann wrote:
> Yeah. Windows fun again.
>
> It turns out that file objects on Windows [1] seem to behave strangely,
> compared to Linux: after f = open(..., 'ab'), f.tell() returns 0L on
> Windows for nonzero (!) files, whereas on Linux, it returns the size of
> the file.
>
> [1] as seen here with Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC
> v.1500 64 bit (AMD64)] on win32)
>
> This hack lets test-obsolete.t pass for me on Windows:
> ...

With this patch test-obsolete.t passes on my PC too.

Eduard


More information about the Mercurial-devel mailing list