summaryrefslogtreecommitdiff
path: root/sys/src/cmd/hgfs/info.c
AgeCommit message (Collapse)Author
2020-03-01hgfs: fix loadrevinfo() for empty log bugcinap_lenrek
loadrevinfo() would fail on a empty log portion due to a bug in the previous commit. the loop is supposed to skip all bytes until we encounter a empty line. the loop starts at the beginning of a line so when we encounter a \n, we have to terminate, otherwise read bytes until we see \n (end of a line) and then read another and test the condition again.
2019-12-09hgfs: fix loadrevinfo() breakage on long lines using libbio (thanks deuterion)cinap_lenrek
2015-04-22hjfs: preserve newlines in commit message (thanks BurnZeZ)cinap_lenrek
2012-11-21hgfs: various improvementscinap_lenrek
lazily close revlog files and keep up to 8 revlogs arround. also cache the latest extracted file descriptor of a revision in the revlog. this avoids the quite expensive reextracting/patching when we reopen the same file revision. dont use the racy mktemp()/create, instead create a uniqueue name and create with OEXCL. this also avoids a bunch of access() calls. fix eof case and use pread() in fcopy() to avoid the seeks. dont modify changelog temp file but simulate trailing newline instead.
2012-11-02hgfs: fix metaheader offset for logcinap_lenrek
2011-07-01hgfs: make qid generation machine independentcinap_lenrek
2011-06-27hgfs: change semantics of log to contain only the file listcinap_lenrek
2011-06-26add hgfs, a mercurial filesystemcinap_lenrek