Size: 160
Comment:
|
Size: 1305
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
== ConvertParentdelta == '''This extension is not distributed with Mercurial.''' |
|
Line 2: | Line 4: |
To convert repositories to parent delta enable [[http://selenic.com/hg/file/tip/contrib/compress.py|compress]] extension | ''Author:Pradeepkumar Gayam'' Download site:http://selenic.com/hg/file/tip/contrib/compress.py === Overview === This extension is used to convert normal repositories into parentdelta repos. It reads revision of each file and rewrites the in new repository. It can be used to observe the affect of changes made in `revision()` and `addrevision()` functions in revlog. This was written aiming to convert a repository to parent delta repo. Some optimization can be done to cost less CPU. === Configuration === Configure your .hgrc to enable the extension by adding following lines: |
Line 5: | Line 15: |
hg compress -R from to | [extensions] compress = /path/to/file [format] parentdelta = True |
Line 7: | Line 21: |
'''Make sure to remove `[format]` part from your configuration file if you don't want to use this feature in any other repositories.''' === Usage === `hg compress -R from to` === Stats === inserting full revision at a distance of 2 * len(fulltext) mercurial repository compressed to: 11MB to 4.4MB At a distance of 4 * len(fulltext) 11MB to 4.2MB At a distance of 6 * len(fulltext): 11MB to 2.0MB `danchr` in IRC quotes that 2GB repo compressed to ~380MB ---- CategoryExtension CategoryExtensionsByOthers CategoryExtension |
ConvertParentdelta
This extension is not distributed with Mercurial.
Author:Pradeepkumar Gayam
Download site:http://selenic.com/hg/file/tip/contrib/compress.py
Overview
This extension is used to convert normal repositories into parentdelta repos. It reads revision of each file and rewrites the in new repository. It can be used to observe the affect of changes made in revision() and addrevision() functions in revlog. This was written aiming to convert a repository to parent delta repo. Some optimization can be done to cost less CPU.
Configuration
Configure your .hgrc to enable the extension by adding following lines:
[extensions] compress = /path/to/file [format] parentdelta = True
Make sure to remove [format] part from your configuration file if you don't want to use this feature in any other repositories.
Usage
hg compress -R from to
Stats
inserting full revision at a distance of 2 * len(fulltext) mercurial repository compressed to: 11MB to 4.4MB
At a distance of 4 * len(fulltext) 11MB to 4.2MB
At a distance of 6 * len(fulltext): 11MB to 2.0MB
danchr in IRC quotes that 2GB repo compressed to ~380MB
CategoryExtension CategoryExtensionsByOthers CategoryExtension