Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Name Author(s) Reviewed by Ramakrishna Reddy Battula (Emp Id: 139190) ramakrishnareddy.battula@wipro.com Sudheer Kandal (Emp Id: 134361)
Wipro Technologies 1.Introduction ......................................................................................................................3 2.Team Foundation Server Features ...................................................................................3 2.1.Workspace..................................................................................................................3 2.2.Branches.....................................................................................................................3 2.3.Branching and Merging.............................................................................................3 2.4.Path Space..................................................................................................................4 2.5.Version.......................................................................................................................4 2.6.Shelving.....................................................................................................................4 2.7.Email Alerts ..............................................................................................................5 2.7.1.Required Permissions .............................................................................................5 2.7.2.Add or Edit Alerts...................................................................................................5 2.7.2.1.To add alerts.........................................................................................................5 2.7.2.2.To edit alerts........................................................................................................6 3.Working with Source Control Workspaces......................................................................6 3.1.Maintaining Multiple Workspaces.................................................................................6 4.Differences between Team Foundation and Visual SourceSafe.......................................7 4.1.Reliability.......................................................................................................................7 4.2.Scalability......................................................................................................................8 4.3.Changesets.....................................................................................................................8 4.4.Sharing and Pinning.......................................................................................................8 4.5.Check-Out and Check-In...............................................................................................9 5.Features that Work Differently in Team Foundation........................................................9 6.List of Syntax, Conventions and Limitations...................................................................9 6.1.Names lengths:...............................................................................................................9 6.2.Comment lengths: .........................................................................................................9 6.3.Files and Paths: ...........................................................................................................10 6.4.Names: ........................................................................................................................10
Wipro Technologies
1. Introduction
Team Foundation source control provides standard source-code version control functionality, which can scale to handle thousands of developers. Beyond the typical source control functionality, Team Foundation is also an enterprise class software configuration management product that provides integrated version control, issue tracking, and process management for development teams. Besides being integrated into the Visual Studio environment with other Team Foundation technologies, such as creating a build and work item tracking, the source control also includes a stand-alone graphical user interface and a command line interface.
2.2. Branches
Branching is a feature that allows a collection of files to evolve in two or more divergent paths Labels vs. branches Use branches to create isolation Use branches for supported releases (i.e. maintenance branch) Use labels to tag a file or a series of files with a distinct notation (i.e. daily builds)
Wipro Technologies
Prefer full merges to cherry-pick merges Merge frequently Always create a top-level folder underneath a new team project to serve as a main branch Intelligent
Once you have created a branch, moving changes from the branch source to the branch target or from the branch target back to the branch source is very easy. Team Foundation Source Control maintains the relationships of branched items and the merge history.
2.5. Version
Each branch has a number. Branch number is created from the revision number of the file where the corresponding branch forked off. Each version of the file can have multiple branches
2.6. Shelving
Shelving is another new, key concept to TFS. Shelving allows a developer to store their pending changes to the server without checking them in. TFSC introduces the concept of a shelve set, which is similar to a change set except that its used to store files in a personal space on the server. Users can upload pending changes, comments, and associated work items to this personal space which allows for full maintenance, backup and disaster recovery whilst they work
2.7.2.1.
To add alerts
1. With a team project node selected, on the Team menu, click Project Alerts. 2. Select the check box next to the alerts you want. 3. For each alert, in the Send to column, add the e-mail addresses of the team members who should receive the alert. You can use a distribution list to simplify managing recipients when team members are added or removed. 4. For each alert, in the Format column, select HTML or Plain text for the type of e-mail message to be sent. 5. Click OK to save your alerts for the selected project.
1. With a team project node selected, on the Team menu, click Project Alerts. 2. For each type of alert, you can change the following: Select or clear the check box to turn the alert on or off. In the Recipients column, type the e-mail addresses of the people you want to receive each type of alert. In the Format column, select the format of the e-mail messages for each type of alert. 3. Click OK to save your changes.
Wipro Technologies
First, you might want to maintain multiple copies of source, each pointing at different versions. This can be helpful if you are working on a new release but need to be able to refer back to the source code from a previous release. The second reason to consider creating a "test workspace" on your computer is to make it easier to complete code reviews. If you typically build and test other people's code as part of a code review, you might want to create a dedicated workspace.
4.1.Reliability
Since Visual SourceSafe does not have a server component, operations involving the transfer of data from the client to the database are non-
Wipro Technologies
transactional. This means that an operation cannot be rolled back if a problem occurs. Team Foundation is a client-server application in which write operations occur in the database by way of stored procedures that are not subject to network connectivity issues. Furthermore, certain operations are performed by using transactions so that they can be rolled back in the event of an error. This architecture makes sure that the source files are not unknowingly corrupted. It also makes sure that groups of files that contain dependent changes are all committed to the source control server at the same time, as a presumably welltested change set.
4.2.Scalability
Team Foundation can support teams of up to 2000 users whereas Visual SourceSafe is recommended for teams of twenty or less. Team Foundation servers can contain as much data as a SQL Server database allows (terabytes) and your hardware can support, whereas the recommended size limit for a Visual SourceSafe database is 4 GB.
4.3.Changesets
Conceptually, the internal structure of a Visual SourceSafe database and that of a Team Foundation source control server is similar. Both databases and servers are organized hierarchically. Folders contain files. Files consist of versions that are identified by number and date/time of creation. Team Foundation advances a concept that does not exist in Visual SourceSafe; changeset. A changeset is a logical container in which Team Foundation stores everything related to a single check-in operation: file and folder revisions, links to related work items, check-in notes, a check-in comment, and other information such as who submitted the change. For more information, see Working with Source Control Changesets.
Wipro Technologies
and merge because Visual SourceSafe does not store the merge history between two branches of files or folders. However, Team Foundation source control does have support for merge history. Without merge history, you end up doing baseless merge in Visual SourceSafe.
6.1.Names lengths:
Check-in note names can be up to 64 characters long. Check-in policy names can be up to 256 characters long. Label names can be up to 64 characters long. Workspace names can be up to 64 characters long. Shelveset names can be up to 64 characters long.
6.2.Comment lengths:
Team Foundation Server 9
Wipro Technologies
Check-in comments can be up to 2GB. Check-in note values can be up to 2GB. Label comments can be up to 2048 characters long. Shelveset comments can be up to 2048 characters long. Workspace comments can be up to 2048 characters long.
6.4.Names:
Most names in Team Foundation source control cannot begin or end with spaces or tabs. Any character can be used for names or labels, except the following: (Angle brackets (< >),Colon (:), Asterisk (*), Forward (/) and backward slash (\) , Question mark (?) ,Quotation mark ("), Pipe (|),A dollar sign ($) cannot be the first character in a file name , Label names cannot contain (@),Workspace and shelveset names cannot contain (;) )
10