ENH: AnnexRepo.get_metadata(batch=True) #3364
Merged
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.
This is a fragile enterprise due to the limitations of
BatchedCommand()
. When queried for a non-annexed file, git annex will error not via JSON response, but through stderrwhich ATM is not monitored at all. I assume due to the general sadness of subprocess under PY2.
Docstrings warn about this, and there is no
batch=None
automagic because of this.Other than that, it works.
This is needed to achieve a sensible performance of the
annex
extractor in -revolution (the behavior of the one in -core is pointless anyways), where all these limitation do not matter.Waiting here: https://github.com/datalad/datalad-revolution/compare/enh-annex