Reputation: 16685
I'm issuing the following command to TFS:
>tf merge /baseless c:\ws\source c:\ws\target /recursive /version:C100~C100
But I have a large list of changesets that need to be merged. Is there a shortcut for this, or some way to specify a list, for example:
>tf merge /baseless c:\ws\source c:\ws\target /recursive /version:C100,C108,C110,C800,C1001,etc...
Upvotes: 4
Views: 2942
Reputation: 38106
The following extension claims to do this:
TFS Productivity Tools - Extended Merge 2012
ExtendedMerge extension provides workaround for several merge features not implemented by TFS:
- TFS merge leads to bulk check-in operation that puts files from all previous changesets into one big merge changeset.
- TFS allows only for consecutive changesets being cherry-peeked by merge operation.
- TFS doesn’t allow choosing changesets for cherry-peek merge by selecting work items.
- TFS merge dialog doesn’t have “force” and “baseless” options.
You'd might also want to upvote this feature in the Visual Studio User Voice.
Upvotes: 2
Reputation: 1651
Grabbed this from another post, you may have seen it but as I haven't ran into this I'm just trying to lend a hand.
You have a couple options:
In both of these you will still have to resolve issues where a different change was made to the same line in the same file in the source and target branches.
OP: Merge multiple files in TFS
Upvotes: 3
Reputation: 2087
If powershell is an option, below script should help (not tested!):
$cslist = 1,23,45,456,568 #list of all changesets
foreach ($cs in $cslist) { & 'C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\tf.exe' merge /baseless c:\ws\source c:\ws\target /recursive /version:C$cs }
Upvotes: 3