Commits
- Commit:
eee114b41cf7ab91bbbd07d50d4d496161c901b7
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix paths stored in pack meta data, improving file deltification
The old code was broken and stored an empty path or filenames, instead
of a repository-relative path. Which means we didn't sort files for
deltification as was intended.
Fixing this provides much better deltas in large pack files written by
gotadmin pack -a. In my test case, pack size changed from 2GB to 1.5GB.
ok op@
- Commit:
36832a8e24b87436ab3bb16483022e6e6d458699
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
refactor got_patch / got_worktree_patch_complete
let got_patch own fileindex_path and call got_worktree_patch_complete
only if got_wokrtree_patch_prepare hasn't failed.
suggested by stsp@
- Commit:
5e22b7375b034172c405da8657858663d1051eb3
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
got patch: avoid open/sync/close the fileindex over and over again
Instead of flushing the fileindex after every patch in the patchfile
just reuse the same fileindex and sync it only at the end of the patch
operation. This speeds up 'got patch' on large repositories by quite a
lot.
- Commit:
9a267125aa0f9487f325eea3e3c551ad9a19ca51
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
inline struct got_object_id in struct got_object_qid
Saves us from doing a malloc/free call for every item on the list.
ok op@
- Commit:
20c6bdb6df94655d118fd1c273846fc7fedc954b
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
plug a small memleak on error in got_pack_create()
- Commit:
b0d7d6cb5f5afc2e6662b1eff3c3561116a0483f
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
avoid malloc/free for duplicate check in got_pathlists_insert()
ok op@
- Commit:
ff47022487821209766a1ed2b881c9584ba08120
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
revert "Skip poll(2) if an imsgbuf has a non-empty read buffer"
imsg_read() will call recvmsg() on the file descriptor regardless
of the read buffer's state, so we should ensure that data is ready.
The read buffer is used by imsg_get(), not imsg_read().
We already call imsg_get() before imsg_read(), and call the latter
only if imsg_get() returns zero.
- Commit:
3e54812463cc8a33236c16a18d1361597e516d71
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
Skip poll(2) if an imsgbuf has a non-empty read buffer.
- Commit:
e9f1a409ccc66a6fb79a3022695ca78ad26972ea
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
imsg_add() frees its msg argument on error; avoid double-free in error paths
- Commit:
06de99ad9dbe5d88d79f48101bd0b77c3eee9c5b
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
batch up tree entries in imsg instead of sending one imsg per tree entry
This speeds up loading of trees significantly.
ok op@
- Commit:
78e7b7b857eb65d5dadfd886cc9797448ccfdf23
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
parse tree entries into an array instead of a pathlist
Avoids some extra malloc/free in a performance-critical path.
ok op@
- Commit:
a396f31332bc05dfcba73d72e5aabedddf20508f
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
prevent an out-of-bounds access in got_privsep_recv_tree()
- Commit:
c3bacae2a3794d951de554d609750fcf4ef316fa
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
plug memory leak in an error path of got_privsep_recv_tree()
- Commit:
ace4d4e7e066dc48410d8dcf01d45d1a18986627
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make got_privsep_recv_tree() reject trees with less than zero entries
- Commit:
8767bb940965a692a36958085832958a312923bc
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
rework logic in got_privsep_recv_tree() to avoid an ugly 'goto'
no functional change
- Commit:
bafaf650cf9ee98df6390dc7b731fcf9546fb714
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
got patch: switch from fseek() to fseeko(), use unary minus while here
ok op
- Commit:
88c260f4a8605679ac53139d0e8f8d7617d68ea9
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
got patch: fail when reading empty hunks
- Commit:
7f20c2a8f882b91c6e5d03ba371595eb0211126b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix cross-compilation; diff from Leah Neukirchen (thanks!), ok thomas
- Commit:
0edd68a505ad052985d5d1337106587d2a165c0e
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: set next version
- Commit:
983d44d72ca4def1c26ef74f69543313e3176b31
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
CHANGELOG for 0.70
Update the CHANGELOG for the 0.70 release.
- Commit:
82f9484cc55a71e0bce201220c989e5058da6b9d
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: include sha1.h portably
Don't directly include sha1.h as this isn't always in the same location
across systems.
- Commit:
0c503cc75a72f525ae7a47357843d8618a4d72bc
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
got patch: resolve paths from the current working directory
this allow to apply patches from subdirectories of the work tree root.
Prodded by naddy@, ok stsp@.
- Commit:
204b0a79ec78673fed34373470eef6eb692afc46
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
bump version number
- Commit:
21a6bfd0765e7ff32294ecf8caf3acf3be88d002
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
CHANGES for 0.70
- Commit:
d93dda9a3b03adc3e079e01627a6c4b9ded83277
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
map delta cache file into memory if possible while writing a pack file
with a fix from + ok op@