Tuesday, 24 March 2015

TFS Basic Series Part 1 : How to Use Label in TFS 2013

Click File --> Source Control -->Advanced --> Apply label

We need to Provide label Name , Comment, Path and version..

We can also provide label by command line

  1. Click Start, click All Programs, point to Microsoft Visual Studio 2005, point to Visual Studio Tools, and then click Visual Studio 2005 Command Prompt.
  2. Type cd path, where path is the directory that contains the applicable workspace.
  3. Type tf label mylabel . /r.
  4. Attaches the "mylabel" label to the workspace version of the "path" folder and all the files and folders it contains.

We can find the label by

Click File --> Source Control -->Find Label.

We can create branch whenever needed on top of given Label..

Build server automatically label for each build.

We can have multiple label applied to same version of file.

Applying label is as good as creating branch..Labelling should be done quite often while branching to be done rarely..

As a best practices branching should be done only to do patching to release.


No comments:

Post a Comment

Featured post

Getting Started With SOLR

Getting Started with Solr ·           Features o    Hit highlighting o    Auto correction o    Faceted Search o    Multi lan...