Improve smart threading for HTTPS URLs with pushurl #69
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.
Summary
Improves smart threading performance by processing HTTPS URLs with
pushurlin parallel instead of serially.Problem
Currently, all HTTPS URLs are processed serially to avoid overlapping credential prompts. This is overly conservative for packages that define both:
url = https://github.com/org/repo.git(public read)pushurl = git@github.com:org/repo.git(authenticated write)These HTTPS URLs won't prompt for credentials (they're read-only/public), so they should be safe to process in parallel.
Solution
Updated
_separate_https_packages()to check forpushurlpresence:Benefits
✅ Performance: Common public repo pattern now processed in parallel
✅ Backward Compatible: No breaking changes, purely optimization
✅ Smart: Leverages semantic meaning of pushurl configuration
Changes
src/mxdev/vcs/common.py: Updated_separate_https_packages()logictests/test_git_additional.py: Addedtest_smart_threading_separates_https_with_pushurl()CHANGES.md: Documented performance improvementREADME.md: Updated Smart Threading documentationTesting
Example Configuration