Google Analytics İzleme

29 Kasım 2010

TFS 2010 sunucuda, diğer kullanıcılarda kilitli olan dosya veya klasörlerin kilidini kaldırma

To undo another user's lock:

  1. Click Start, click All Programs, click Microsoft Visual Studio 2008, click Visual Studio Tools, and then click Visual Studio Command Prompt.
  2. Type the following command and replace the arguments with the appropriate parameter information for your needs:

tf lock /lock:none $/MyTeamProject/web.config

 


Örnek komutlar:

Bir kişiye ait workspace'lerin listelenmesi:

c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>tf workspaces /owner:DOMAIN\USERNAME /computer:* /s:http://TFS2010SERVERNAME:8080/tfs


Bir kişinin üzerindeki dosya veya klasördeki lock'u kaldırma:

c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>tf lock $/SampleProject1/ProjectDirectory/web.config /lock:none /collection:http://TFS2010SERVERNAME:8080/tfs/DefaultCollection /workspace:SAMPLETFSWORKSPACE;DOMAIN\USERNAME



Bunu yapmaya da yetkili olmak gerekiyormuş: 

Required Permissions

To undo an exclusive lock for another user, you must have the Unlock other user's changes set to Allow.

 

Kaynak:

http://msdn.microsoft.com/en-us/library/cc470670(VS.90).aspx


--------------------------------------

--------------------------------------



Power tools ile yani gui yoluyla da kaldırma işlemi yapılabiliyormuş. Denedim oluyor. Windows command ile uğraşmaya gerek olmayacak.

Detay:

 

TFS Power Tools

Once installed:

1.    Open Source Control Explorer

2.    Right-click the item on which checkout is to be undone (or a parent folder of multiple files to be undone)

3.    Select Find in Source Control and then Status

4.    In the Find in Source Control dialog, leave the Status checkbox marked

5.    Optionally, enter a value for the Wildcard textbox

6.    Optionally, enter a username in the "Display files checked out to:" textbox and select that radio button

7.    Click Find

8.    This will result in a list of files

9.    Select the items to undo

10.  Right-click and select Undo

11.  Click Yes when prompted with "Undo all selected changes?"

 

 

Team Foundation Sidekicks

Another option is to use the Team Foundation Sidekicks application, which can be obtained here:http://www.attrice.info/cm/tfs/

It has a Status sidekick that allows you to query for checked out work items. Once a work item is selected, there are "Undo pending change" and "Undo lock" buttons that can be used.

Rights

Keep in mind that you will need the appropriate rights. The permissions are called "Undo other users' changes" and "Unlock other users' changes". These permissions can be viewed by:

1.    Right-clicking the desired project, folder, or file in Source Control Explorer

2.    Select Properties

3.    Select the Security tab

4.    Select the appropriate user or group in the Users and Groups section at the top

5.    View the "Permissions for [user/group]:" section at the bottom

 

 

Kaynak:

http://stackoverflow.com/questions/1690351/how-to-undo-another-users-checkout-in-tfs-via-the-gui

 

 

Hiç yorum yok: