Merges Command

Displays detailed information about past merges between the specified source and destination branches.

tf merges [/server:servername] [source] destination [/recursive]

Parameters

Argument Description

servername

The user-provided value for the /server option. Example: teamfoundation2.

source

The merge history should be filtered to include only entries with the specified source.

This parameter is optional.

destination

Specifies the destination branch for which merge history is displayed.

This parameter is required.

Option Description

/server

Identifies the Team Foundation Server. This option is required if the command is invoked from a directory that is not mapped to a workspace.

/recursive

Displays information for all merges in specified Team Foundation source control server folder and its subfolders.

Remarks

For links to other Team Foundation commands that provide additional information about the items in your Team Foundation source control server and all the workspaces that map to it, see Informational Commands.

Examples

The following example displays information about all merge operations performed between Beta1_branch and RTM_branch.

c:\projects>tf merges /recursive Beta1_branch RTM_branch
  • Sample output:

    Chgset     Merged In Chgset       Author     Date
    --------------------------------------------------------
    135         162                   Justin     10/31/2003
    146         162                   Justin      10/31/2003
    147*        167                   Bill       11/02/2003
    

    The asterisk ‘*’ next to changeset 147 indicates that only some of the changes in that changeset #147 were merged into changeset #167.

Security

To use the merges command, you must have the Read permission set to Allow for both source and destination branches. For more information, see Team Foundation Server Permissions.

See Also

Tasks

How to: Show Differences between Two Files or File Versions
How to: Resolve Conflicts

Reference

Command-Line Syntax
Merge Command
Branch Command

Concepts

Informational Commands
Understanding Branching

Other Resources

Tf Command-Line Utility Commands