Lightweight copy
Guido Ostkamp
hg at ostkamp.fastmail.fm
Sun May 6 22:08:42 UTC 2007
>> This certainly means that Mercurial does not use lightweight copies.
>
> When you copy a file, a new revlog is created with the new filename
> containing a single compressed revision of the file. If the old file
> only had one revision, then yes, the size will double. If the old file
> had a thousand revisions, it will not.
>From what you said I understand that you already have a backpointer for
the thousand revisions.
Would it be theoretically possible to omit the single compressed revision
of the file and just add a hint on where to find or how to generate it, if
there is just one unchanged revision resulting from the copy?
This would help to save disk space.
Regards
Guido
More information about the Mercurial
mailing list