Speed on Windows for big repos
Adrian Buehlmann
adrian at cadifra.com
Mon Jan 28 09:51:20 UTC 2008
On 28.01.2008 01:56, Matt Mackall wrote:
> And here's a patch:
>
> diff -r 359036c4e09e mercurial/util_win32.py
> --- a/mercurial/util_win32.py Fri Jan 25 17:10:35 2008 -0600
> +++ b/mercurial/util_win32.py Sun Jan 27 18:56:12 2008 -0600
> @@ -317,10 +317,7 @@
> self.closed = True
>
> def flush(self):
> - try:
> - win32file.FlushFileBuffers(self.handle)
> - except pywintypes.error, err:
> - raise WinIOError(err)
> + pass
>
> def truncate(self, pos=0):
> try:
>
Thanks a lot Matt.
I will see if I can manage to apply your patch to my local Mercurial Windows
setup and rerun my tests (given the fact that I'm a total noob on Python and
Mercurial hacking, this might take some time).
More information about the Mercurial-devel
mailing list