How to remove a specific ChangeSet in TFS 2010?

后端 未结 3 1507
逝去的感伤
逝去的感伤 2020-12-11 01:33

How to remove a specific changeset in tfs2010?

I have changeset version numbers with 545, 544, 543,542.

Now, I am looking to delete the particular changeset

3条回答
  •  时光取名叫无心
    2020-12-11 02:23

    You cannot delete a changeset in TFS. Even if you could somehow, (I think you can run a sql query against the TFS database to do that) its not a good practice. If people start deleting changesets/history the whole purpose of version control will be defeated. I think few other source controls allow that but I would not suggest to do that. Its a bad practice.

    Also, if you use other features of TFS like Workitems/Test Cases etc. changesets get linked to it so if they get deleted the links will become orphan(I think).

    As Arin said the closest thing you can do is to use Rollback command but when you do that you will have to check-in the code after rollback so basically you will see the old changset and the new one(rollback) in the history.

提交回复
热议问题