[PATCH 0 of 7] parentdelta patches ready for testing

Matt Mackall mpm at selenic.com
Fri Aug 6 14:01:34 CDT 2010


On Fri, 2010-08-06 at 12:30 +0530, in3xes at gmail.com wrote:
> Hi,
> 
>    These patches are ready for testing. To test them simply import all the patches except last one to queue and enable parentdelta format and set path to the compress extension in configuration file
> 
> Ex:
> [format]
> parentdelta = True
> 
> [extensions]
> compress = /path/to/compress.py
> 
> Now efficiency is pretty good compared to previous version. On my machine efficiency has decreased to 1.3x for new repo and less then 1.1x for older repos. 7th patch is to find minimal delta among prev, p1, p2. The current approach is  expensive compared to memory efficincy.
> 
> Test results.
> 
> Mercurial repo manifest 10Mb to 2Mb
> Mozilla repo manifest 53Mb to 25Mb

Folks should be running check-code:

$ check-code -b `hg manifest`
contrib/compress.py:58 (in3xes at 11765):
 >     "compress" : (compress, [('u', 'update', None, 'update repository
after compress')], "DEST")
 line too long
hgext/rebase.py:157 (timeless at 11729):
 >                 ui.progress(_("rebasing"), pos, ("%d:%s" % (rev,
repo[rev])), _(' changesets'), total)
 line too long
mercurial/revlog.py:1024 (in3xes at 11761):
 >             return rev-1
 missing whitespace in expression
mercurial/revlog.py:1176 (in3xes at 11766):
 >                     l, p, data = min(candidates(p for p in (p1, p2,
prev) if p != nullrev))
 line too long

You might find this helpful:

[alias]
check = !cd `hg root`; contrib/check-code -b `hg manifest`

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list