Size: 1165
Comment:
|
← Revision 14 as of 2012-11-04 02:28:18 ⇥
Size: 1215
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
== ConvertParentdelta == | ## page was renamed from ConvertParentdelta == CompressExtension == |
Line 3: | Line 4: |
<<TableOfContents>> | |
Line 9: | Line 11: |
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. | 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. |
Line 12: | Line 14: |
Configure your .hgrc to enable the extension by adding following lines: | Configure your `.hgrc` to enable the extension by adding following lines: |
Line 17: | Line 19: |
[format] parentdelta = True |
|
Line 22: | Line 21: |
`hg compress -R from to` | `hg --config format.parentdelta=True compress -R from to` |
Line 25: | Line 24: |
inserting full revision at a distance of 2 * len(fulltext) mercurial repository compressed to: 11MB to 4.4MB | Inserting full revision at a distance of `2 * len(fulltext)`, the Mercurial repository compressed from 11MB to 4.4MB. |
Line 27: | Line 26: |
At a distance of 4 * len(fulltext) 11MB to 4.2MB | At a distance of `4 * len(fulltext)`: 11MB to 4.2MB. |
Line 29: | Line 28: |
At a distance of 6 * len(fulltext): 11MB to 2.0MB | At a distance of `6 * len(fulltext)`: 11MB to 2.0MB. |
Line 31: | Line 30: |
`danchr` in IRC quotes that 2GB repo compressed to ~380MB | `danchr` in IRC quotes that 2GB repo compressed to ~380MB. |
Line 33: | Line 33: |
CategoryExtension CategoryExtensionsByOthers CategoryExtension | CategoryExtensionsByOthers |
CompressExtension
This extension is not distributed with Mercurial.
Contents
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
Usage
hg --config format.parentdelta=True compress -R from to
Stats
Inserting full revision at a distance of 2 * len(fulltext), the Mercurial repository compressed from 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.