netbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Merlin <paulmer...@apache.org>
Subject Re: Version control advice
Date Wed, 23 Nov 2016 17:59:40 GMT
Hi Emilian,

> I see hg-fast-export.sh finished at some point.
>
> As expected though, git does not have any of the disk space gains. The
> converted git releases/ repository is 3.6GB.

Just a thought.
Did you try some git cleanups after the conversion?

git reflog expire --expire=now --all
git gc --aggressive --prune=now

Cheers


> In case these statistics mean something:
>
> git-fast-import statistics:
> ---------------------------------------------------------------------
> Alloc'd objects:    4090000
> Total objects:      4085509 (  40220100 duplicates                  )
>       blobs  :      1036365 (  28386238 duplicates     858087 deltas of
> 969684 attempts)
>       trees  :      2735935 (  11833862 duplicates    1370606 deltas of
>  2613480 attempts)
>       commits:       313209 (         0 duplicates          0 deltas of
>      0 attempts)
>       tags   :            0 (         0 duplicates          0 deltas of
>      0 attempts)
> Total branches:        1283 (       346 loads     )
>       marks:        1048576 (    313209 unique    )
>       atoms:         124011
> Memory total:        218429 KiB
>        pools:         26711 KiB
>      objects:        191718 KiB
> ---------------------------------------------------------------------
> pack_report: getpagesize()            =       4096
> pack_report: core.packedGitWindowSize = 1073741824
> pack_report: core.packedGitLimit      = 8589934592
> pack_report: pack_used_ctr            =   39000045
> pack_report: pack_mmap_calls          =     733040
> pack_report: pack_open_windows        =          4 /          7
> pack_report: pack_mapped              = 4280730006 / 6950823920
> ---------------------------------------------------------------------
>
>
> --emi
>
> On Fri, Nov 18, 2016 at 1:32 PM, Emilian Bold <emilian.bold@gmail.com>
> wrote:
>
>> A releases/ clone which on my system takes 3.8GB is reduced to 1.6GB with
>> the generaldelta and aggressivemergedeltas flags (took about 14 hours).
>>
>> Pretty impressive!
>>
>> Converting to git with hg-fast-export.sh complains that "repository has at
>> least one unnamed head" for about 6 revisions. With --force I'm able to
>> start the conversion but it hasn't finished yet.
>>
>> The git conversion is about 35% done and already using 1.3GB.
>>
>> So... I assume it's going to need just like the original repository about
>> 3.8GB.
>>
>> I wonder if git has similar space-saving tricks?
>>
>>
>>
>> --emi
>>
>> On Thu, Nov 17, 2016 at 8:46 AM, Emilian Bold <emilian.bold@gmail.com>
>> wrote:
>>
>>> Forgot about this. I've just started the Mercurial repository conversion
>>> which will take a few hours.
>>>
>>> Will report tomorrow or when it's done.
>>>
>>>
>>> --emi
>>>
>>> On Wed, Nov 16, 2016 at 11:18 PM, cowwoc <cowwoc@bbs.darktech.org> wrote:
>>>
>>>> Hi Emilian,
>>>>
>>>> Any update on this?
>>>>
>>>> Thanks,
>>>> Gili
>>>>
>>>>
>>>> On 2016-11-11 01:33 (-0500), Emilian Bold <e...@gmail.com> wrote:
>>>>> Thank you for following through with this after we talked on IRC.>
>>>>>
>>>>> I will check later the size reduction for the releases/ repo.>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message