Make git fast-import timeout configurable (#39) #46
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Very large SVN repositories, especially those which include binary
files, tend to result in very large git pack files (tens of gigabytes).
With its current approach, svn2git will wait 30 seconds (the default
timeout of waitForFinished()) for git fast-import to finish before it
terminates the git process. That default timeout is way too small for
large pack files for which the import process can take several minutes.
To work around this very long processing time, this commit adds the new
command line option "--fast-import-timeout". It allows the user to set a
custom timeout in seconds to wait for git fast-import to finish, with a
timeout of 0 meaning that svn2git will wait forever. This way even large
SVN repositories can be imported successfully.