locked
Checking Out Codes using Labels RRS feed

  • Question

  • Can I check in or check out codes using labels in TFS 2008? Is this possible?
    Thursday, January 13, 2011 4:13 PM

Answers

  • First you have do "Get a Specific Version?" of folder/file by right clicking.  In that dialog under version drop-down you will see the option to specify a label.  (You can do this from the command-line [http://msdn.microsoft.com/en-us/library/fx7sdeyf.aspx]).
    After you have the version of the file specified in the label, you can then check-out all of the files to edit.
    • Proposed as answer by Sahas' Friday, January 14, 2011 3:21 AM
    • Marked as answer by John QiaoModerator Monday, January 17, 2011 4:03 AM
    Thursday, January 13, 2011 4:54 PM
  • Hi RenellTuayon,

     

    What about the progress for this issue?


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by RenellTuayon Monday, July 14, 2014 9:20 AM
    Wednesday, January 19, 2011 6:25 AM
    Moderator

All replies

  • First you have do "Get a Specific Version?" of folder/file by right clicking.  In that dialog under version drop-down you will see the option to specify a label.  (You can do this from the command-line [http://msdn.microsoft.com/en-us/library/fx7sdeyf.aspx]).
    After you have the version of the file specified in the label, you can then check-out all of the files to edit.
    • Proposed as answer by Sahas' Friday, January 14, 2011 3:21 AM
    • Marked as answer by John QiaoModerator Monday, January 17, 2011 4:03 AM
    Thursday, January 13, 2011 4:54 PM
  • Hi RenellTuayon,

     

    Thanks for you post.

     

    As Jehan33 said, we can check out code by Labels in TFS2008 if you have created labels for codes.

    1         On the View menu, click Other Windows, and then click Source Control Explorer.         

    2         Go to a folder or file that you want to add to the new workspace, right-click it, click Get Specific Version. Then the Get dialog box appears.

    3        In the Get dialog box, be sure you select the file or folder you want to get and then select what type of version you want to get from the Type drop-down list:(Changeset/Date/Label/Latest Version/Workspace Version)

    For more information about this in TFS 2008, please refer to: http://msdn.microsoft.com/en-us/library/ms181385(VS.90).aspx.  

     

    For how to create label for files/project, please refer to this following: http://msdn.microsoft.com/en-us/library/ms181440(VS.90).aspx. For perform check out by Label using command line, please refer to: http://msdn.microsoft.com/en-us/library/fx7sdeyf(VS.90).aspx. 


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Sunday, January 16, 2011 1:09 PM
    Moderator
  • Hi,

    In the On the View menu, click Other Windows , and then click Source Control Explorer .  Right click a file there is a Apply label is this different from the  version:  /Label . I'm getting confuse.

    Tuesday, January 18, 2011 3:16 AM
  • Hi RenellTuayon,

     

    Thanks for your reply.

     

    The Apply Label used to create the label. We select the Label in version drop-down list to find the label which already exist. And we can apply a new label based on an existing label. For Apply Label, please refer to this following: http://msdn.microsoft.com/en-us/library/ms181440(VS.90).aspx.


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, January 18, 2011 6:44 AM
    Moderator
  • Hi RenellTuayon,

     

    What about the progress for this issue?


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by RenellTuayon Monday, July 14, 2014 9:20 AM
    Wednesday, January 19, 2011 6:25 AM
    Moderator