简体   繁体   中英

TFS: Undo checkout from “merge, branch, edit” to “merge, branch”

I have following situation:

  • I have created some new projects in solution in one development branch in TFS
  • I'm now merging them into the main branch.
  • Architect has idea to merge two new modules into one.
  • I have moved the code files
  • Project files has already been changed within the merge.

These files have pending changes in form merge, branch, edit . I wan't to make this file merge, branch, delete but TFS won't do that because the file has pending changes. Is it possible to force the deletion or undo edit without undoing merge, branch ?

I don't want to try the merge again and combine files from two shelvesets... Is there any possibility to modify the status of pending changes?

No, TFS does not support that.

You could "undo" the file and just pend a delete instead.

As best practice you shouldn't be making changes as part of a merge, you should just do the minimum possible to resolve the conflicts and get it to build (or not even that sometimes) and then make your required changes in a subsequent check-in. This makes it easier to see in the version control history what changes were made when - I very rarely look to see if a merge of a change is any different from a prior edit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM