Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git.CatPipe: more resilience against weird errors.
Notably, MemoryErrors thrown because the file we're trying to load into memory is too big to load all at once. Now the MemoryError gets thrown, but the main program is potentially able to recover from it because CatPipe at least doesn't get into an inconsistent state. Also we can recover nicely if some lamer kills our git-cat-file subprocess. The AutoFlushIter we were using for this purpose turns out to not have been good enough, and it's never been used anywhere but in CatPipe, so I've revised it further and renamed it to git.AbortableIter.
- Loading branch information
Showing
2 changed files
with
57 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters