Always auto-gc after calling a fast-import transport
commit68cfd0b60505d3bbe096b8363d1a3d0cb233c6a3
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 9 Apr 2012 18:04:35 +0000 (9 13:04 -0500)
committerStepan Kasal <kasal@ucw.cz>
Thu, 15 May 2014 07:42:58 +0000 (15 09:42 +0200)
tree24f2dd3ee3fded0fb5106ae039553e2a966346a0
parent23d01f5d42b1fc0b096c3b9d4a7d4c0034044507
Always auto-gc after calling a fast-import transport

After importing anything with fast-import, we should always let the
garbage collector do its job, since the objects are written to disk
inefficiently.

This brings down an initial import of http://selenic.com/hg from about
230 megabytes to about 14.

In the future, we may want to make this configurable on a per-remote
basis, or maybe teach fast-import about it in the first place.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
transport-helper.c