Visual Studio Team Foundation Server 2015: "TF401189: The source branch has been modified since the last merge attempt."

(Yes, I know, ancient version of TFS!)

If you're attempting to delete a stale pull request in TFS 2015 where the original branch has been deleted (or in this instance merged back to master and then deleted) under a different pull request and receiving the message:

TF401189: The source branch has been modified since the last merge attempt.

These steps worked for me:

  1. Create a new branch of the expected name, branched from the branch the pull request is targeting
  2. Return to the pull request in TFS
  3. Close the pull request
  4. Now delete the temporary branch you created

And that's all there is to it, pull request gone!

About Rob

I've been interested in computing since the day my Dad purchased his first business PC (an Amstrad PC 1640 for anyone interested) which introduced me to MS-DOS batch programming and BASIC.

My skillset has matured somewhat since then, which you'll probably see from the posts here. You can read a bit more about me on the about page of the site, or check out some of the other posts on my areas of interest.

No Comments

Add a Comment