Commit Briefs

Thomas Adam

fix pack progress object counter for loose objects

Move pack progres object accounting to a single place. This makes it easier to account for the case were only loose objects are packed. A wrong amount of objects was reported before when packing loose ones.





Thomas Adam

print additional progress information while packing

ok op@


Thomas Adam

cache a list of known pack index files when the repository is opened

Avoids overhead due to readdir calls while searching a pack index. ok op@


Thomas Adam

portable: pack-create: remove endian.h

endian.h is portably included on non-OpenBSD systems, so let that mechanism determine if it should be included or not.




Thomas Adam

reuse existing deltas when creating pack files

tested by thomas, naddy, and myself






Thomas Adam

only open raw objects if necessary while writing out pack file data

significantly speeds up the "writing pack: " step of gotadmin pack


Thomas Adam

portable: FreeBSD: remove sha1.h

sha1.h will be included portably.


Thomas Adam

use time-based rate-limiting for gotadmin progress output

Suggested by naddy some time ago. ok tracey



Thomas Adam

try only 3 delta base candidates instead of 10 to speed up packing

Tests by kn, thomas_adam and myself made on various repositories indicate that 3 is a good choice. Tyring 10 deltas is much slower and does not result in significantly smaller pack files.


Thomas Adam

portable: tree/queue header fixes

sys/{tree,queue}.h are looked up via configure, and therefore are included via that mechanism.


Thomas Adam

Revert "cache raw objects in order to speed up gotadmin pack"

This reverts commit c565dfd37a157bab9556aceac96ff27d64525fc9.




Thomas Adam

portable: update to handle bloom, etc

Update portable to support changes for bloom, etc.