Skip to content

SCM: Clear list of created resource groups once they are added#105587

Merged
joaomoreno merged 1 commit intomicrosoft:masterfrom
mjcrouch:scm-fix-duplicates
Aug 31, 2020
Merged

SCM: Clear list of created resource groups once they are added#105587
joaomoreno merged 1 commit intomicrosoft:masterfrom
mjcrouch:scm-fix-duplicates

Conversation

@mjcrouch
Copy link
Copy Markdown
Contributor

@mjcrouch mjcrouch commented Aug 28, 2020

Previously, the createdResourceGroups map was never cleared.

This meant that every time a resource group was added, it would re-add all the resource groups that it added last time, and so on.

This PR fixes #105483

also fixes mjcrouch/vscode-perforce#179

This prevents them being re-added again next time
fixes microsoft#105483
@mjcrouch mjcrouch changed the title Clear list of created groups once they are added SCM: Clear list of created resource groups once they are added Aug 28, 2020
@joaomoreno joaomoreno merged commit 3b8ce6b into microsoft:master Aug 31, 2020
@joaomoreno
Copy link
Copy Markdown
Member

Great fix, thanks!

@joaomoreno joaomoreno added this to the August 2020 milestone Aug 31, 2020
@joaomoreno joaomoreno added the scm General SCM compound issues label Aug 31, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

scm General SCM compound issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SourceControlResourceGroup duplicated when new groups are added Refresh causes duplicate changelists to be added, the previous ones become empty

2 participants