Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS combine two change sets into one in the same branch

I have change set 50195 and 50196. The first check-in is 90% of the work for a work item, and the second is the other 10%. I want to be able to combine these two changes set's into one, so 100% of the work for that work item can be rolled back in one change set. Is this possible? I've seen posts around merging change sets into a branch, but not combining two change sets into one.

like image 760
wakurth Avatar asked Oct 04 '22 01:10

wakurth


2 Answers

I don't think this is doable auto-magically.

how about rolling back to the change-set just before 50195, and then re-creating all your changes and check them in at once.

if you save local copies of the changes in 50195 & 50196, you could use the merge tool to push the changes into your new single change-set quickly.

like image 111
kevcoder Avatar answered Oct 13 '22 10:10

kevcoder


I had the same issue, and I achieve it with the steps below:

  1. Pick those few changesets and select roll back for each of them.
  2. Now they are all in my Pending Changes.
  3. Check-in the pending changes into a changeset, eg changeset 12345.
  4. Rollback the changeset 12345 into pending changes, the pending changes will be the combination of the few changesets.
like image 35
Jacky Choo Avatar answered Oct 13 '22 12:10

Jacky Choo