On 10 August 2013 11:26, Dr. Trigon dr.trigon@surfeu.ch wrote:
Pywikibot finished GIT migration. Now a question has anybody ever tryed to clone and use the e.g. the pywikibot/compat repo on the TS? If I do, I get and .git folder of about 200MB which nearly fills my home quota. (this is the plain clone - nothing done to/with it yet!!)
Thanks to Chad:
valhallasw@lisilwen:~/src/pwb$ git clone https://gerrit.wikimedia.org/r/pywikibot/compat tmp Cloning into 'tmp'... remote: Counting objects: 37472, done remote: Finding sources: 100% (37472/37472) remote: Getting sizes: 100% (864/864) remote: Compressing objects: 100% (600634/600634) remote: Total 37472 (delta 26599), reused 37439 (delta 26591) Receiving objects: 100% (37472/37472), 8.05 MiB | 275 KiB/s, done. Resolving deltas: 100% (26611/26611), done.
8.05MB. Beat that! :-) (the checkout itself accounts for the remaining 6 MB, totaling to 14 MB)
Merlijn
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Wow! Very cool thanks!
Could you please explain how this works??
Thanks
On 23.08.2013 00:07, Merlijn van Deen wrote:
On 10 August 2013 11:26, Dr. Trigon <dr.trigon@surfeu.ch mailto:dr.trigon@surfeu.ch> wrote:
Pywikibot finished GIT migration. Now a question has anybody ever tryed to clone and use the e.g. the pywikibot/compat repo on the TS? If I do, I get and .git folder of about 200MB which nearly fills my home quota. (this is the plain clone - nothing done to/with it yet!!)
Thanks to Chad:
valhallasw@lisilwen:~/src/pwb$ git clone https://gerrit.wikimedia.org/r/pywikibot/compat tmp Cloning into 'tmp'... remote: Counting objects: 37472, done remote: Finding sources: 100% (37472/37472) remote: Getting sizes: 100% (864/864) remote: Compressing objects: 100% (600634/600634) remote: Total 37472 (delta 26599), reused 37439 (delta 26591) Receiving objects: 100% (37472/37472), 8.05 MiB | 275 KiB/s, done. Resolving deltas: 100% (26611/26611), done.
8.05MB. Beat that! :-) (the checkout itself accounts for the remaining 6 MB, totaling to 14 MB)
Merlijn
_______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
On 30 August 2013 11:11, Dr. Trigon dr.trigon@surfeu.ch wrote:
Could you please explain how this works??
git gc --aggressive, as described earlier. I created a bz bug to ask to
run this for -compat. The other repositories do not see much of a difference in re-packing.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 01.09.2013 18:10, Merlijn van Deen wrote:
On 30 August 2013 11:11, Dr. Trigon <dr.trigon@surfeu.ch mailto:dr.trigon@surfeu.ch> wrote:
Could you please explain how this works??
git gc --aggressive, as described earlier. I created a bz bug to ask to run this for -compat. The other repositories do not see much of a difference in re-packing.
The garbage collect was just runned once on the server? That's all?! Nice!!! Does this to be done again at some interval, e.g. after a lot of commits, merges, ...?
I do not agree because when I checkout compat with all submodules I have ~46MB size and after 'git gc --aggressive' to all of them it shrinks to ~25MB so roughly a factor 2. I would love to see this done!
Thanks and Greetings DrTrigon
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
How is the state here?
By the way; would it make sence to run this by cronjob e.g. once a month or so?
Thanks and Greetings DrTrigon
On 01.09.2013 19:42, Dr. Trigon wrote:
On 01.09.2013 18:10, Merlijn van Deen wrote:
On 30 August 2013 11:11, Dr. Trigon <dr.trigon@surfeu.ch mailto:dr.trigon@surfeu.ch> wrote:
Could you please explain how this works??
git gc --aggressive, as described earlier. I created a bz bug to ask to run this for -compat. The other repositories do not see much of a difference in re-packing.
The garbage collect was just runned once on the server? That's all?! Nice!!! Does this to be done again at some interval, e.g. after a lot of commits, merges, ...?
I do not agree because when I checkout compat with all submodules I have ~46MB size and after 'git gc --aggressive' to all of them it shrinks to ~25MB so roughly a factor 2. I would love to see this done!
Thanks and Greetings DrTrigon
_______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Le 22/09/13 14:54, Dr. Trigon a écrit :
The garbage collect was just runned once on the server? That's all?! Nice!!! Does this to be done again at some interval, e.g. after a lot of commits, merges, ...?
I do not agree because when I checkout compat with all submodules I have ~46MB size and after 'git gc --aggressive' to all of them it shrinks to ~25MB so roughly a factor 2. I would love to see this done!
How is the state here?
By the way; would it make sence to run this by cronjob e.g. once a month or so?
It should not be needed since git will garbage collect automatically from time to time:
$ git remote update Auto packing the repository for optimum performance. You may also run "git gc" manually. See "git help gc" for more information. ...
Have a look at the --auto option in `man git-gc`.