web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Code merges in Visual Studio changeset cleanup

(1) ShareShare
ReportReport
Posted on by 275
We use daily pipelines running from a Dev branch to build code based on the day’s check ins. 
We have a Main branch to which changesets are merged from the Dev branch, done in Visual Studio using Source Control Explorer (TFVC, not Git).

I’ve recently deployed an ISV from a vendor that was not properly checked.  The packages received from the vendors was build on development environments (not pipelines).  I don’t have control over the vendors processes due to politics on the project. 

This means that I checked in multiple deletions and deployments of the ISV  to the Dev branch, which means multiple changesets.  These changesets will never get merged to higher branches.
Is there any way to cleanup unnecessary changesets which will never be merged, from the list of available changesets when merging from Dev to Main branches?
 
Categories:
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    235,924 Most Valuable Professional on at
    Code merges in Visual Studio changeset cleanup
    You can use tf merge /discard on command line (you can easily find more details about it on internet, e.g. How To Remove A Merge Candidate From The Merge Tool in Visual Studio). I sometimes used it in the past. It's good to fix these things ASAP, before it becomes a mess. An alternative is actually merging everything (all the deletions etc.), although you're really interested just in the final state.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
DAnny3211 Profile Picture

DAnny3211 345

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 87 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans