Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to merge by changesets that have already been merged?

Tags:

tfs

My Test and Dev branches are out of sync. The Changesets I want have already been merged through. I want to simply take what is in the Development subdirectory and push it straight into Test as it stands, overwriting whatever test has. Is this possible?

e.g.

$\dev\blah\subdirectory => $\test\blah\subdirectory

I know I can take each file I want and manually copy from Dev => Test then check in. There are 10 files so I prefer not to do it that way. Does TFS offer any means to accomplish this task?

like image 888
P.Brian.Mackey Avatar asked Aug 30 '12 18:08

P.Brian.Mackey


People also ask

How do I merge two changesets in TFS?

You cannot merge multiple changesets in one go, unless the changesets are in sequence. Using the tf command line tool you specify a range of versions by separating the version with a tilde character. In this case the changes 162987 and 162967 will also be included.

How to check changeset in Azure devops?

Right-click the changeset for which you want information, and select Changeset Details... The Details for Changeset dialog box appears. In the Details for Changeset dialog box, view the change types that were added and any comments, work items, check-in notes, and policy warnings that are associated with the changeset.


1 Answers

From a visual studio command prompt change directories to your workspace that you want to run the merge in and then run "tf merge sourcebranch targetbranch /r /force". That will ignore merge history and copy the content like you want.

like image 167
Taylor Lafrinere Avatar answered Nov 15 '22 12:11

Taylor Lafrinere