Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure repository deletion is consistent #6214

Merged
merged 2 commits into from
Aug 23, 2022
Merged

Ensure repository deletion is consistent #6214

merged 2 commits into from
Aug 23, 2022

Commits on Aug 22, 2022

  1. Ensure repository deletion is consistent

    This change improves the consistency of Pool.remove_repository() to make
    it easier to write poetry plugins which mutate the repository pool.
    
    1.  Deleting an element from the middle of Pool()._repositories
    decrements the index of later entries.  Update Pool()._lookup to reflect
    this.
    
    2.  If a primary repository is deleted, decrement
    Pool()._secondary_start_idx to ensure that any additional primary
    repositories are still added before all secondary repositories.
    
    3.  If the default repository is deleted, reset Pool()._default so a new
    one can be added.
    jre21 committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    e7fbd86 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2022

  1. Improve unit test coverage

    Co-authored-by: Randy Döring <30527984+radoering@users.noreply.github.com>
    jre21 and radoering authored Aug 23, 2022
    Configuration menu
    Copy the full SHA
    61e6714 View commit details
    Browse the repository at this point in the history