locked
Get Latest on Checkout RRS feed

  • Question

  • Hi,

    Im using VS 2008 as developer. Source codes are on TFS 2008. I cant get latest version automaticly when i edit a file.. I checked Get Latest Automatically on VS2008 and TFS admin enabled "Get latest on checkout" feature on TFS 2008.. I read that must be enough for getting automatically.. But dont.... 

    Thanx for help.

    Wednesday, May 12, 2010 7:27 AM

Answers

All replies

  • Hi,

    Is this setting is fine?

    In Visual Studio -->under Tools -->Options -->Source Control -->Visual Studio Team Foundation Server --> Get Latest version of item on check out (check box needs to checked)

    Wednesday, May 12, 2010 12:44 PM
  • Hi jehan, thnx for reply..

    Yes i checked it.. Other team members cant use this feature. On TFS enabled this feature too.

    Wednesday, May 12, 2010 1:59 PM
  • Hello,

    can you try the following from the visual studio command line and send us the results. foo.txt is file that you want to edit, that has a nawer version on the server.

    - tf properties foo.txt

    - tf edit foo.txt

    - tf properties foo.txt


    Michal Malecki TFS Version Control Client
    Wednesday, May 12, 2010 3:46 PM
  • Hi Michal, Thanx for reply. There is output.. file checked out but it is still same as local version..

     

     

    c:\>tf properties ------

    Local information:

      Local path : -----

      Server path: --------

      Changeset  : 15048

      Change     : none

      Type       : file

    Server information:

      Server path  : ------

      Changeset    : 15089

      Deletion ID  : 0

      Lock         : none

      Lock owner   :

      Last modified: Thursday, May 13, 2010 8:20:38 AM

      Type         : file

      File type    : utf-8

      Size         : 72774

     

    c:\>tf edit -------------

     

     

    -----------:

       newer version exists in source control

     

    c:\>tf properties --------------

    Local information:

      Local path : -------------------

      Server path: -------------------

      Changeset  : 15048

      Change     : edit

      Type       : file

    Server information:

      Server path  : --------------------------

      Changeset    : 15089

      Deletion ID  : 0

      Lock         : check-out

      Lock owner   : Eren_Cetin

      Last modified: Thursday, May 13, 2010 8:20:38 AM

      Type         : file

      File type    : utf-8

      Size         : 72774


     

    Thursday, May 13, 2010 5:56 AM
  • yes, gloc is obviously not working here.

    2 more things to try:

    - run tf history /i foo.txt, so we can see what changes were made on the server.

    - enable soap tracing (http://blogs.msdn.com/edhintz/archive/2007/03/30/tfs-client-tracing.aspx for the tf.exe by editing tf.exe.config; please modify the version of the assemblies to match your client - for Orcas it's 9.0) and run

    * tf configure, so we see if gloc is really turned on

    * tf properties foo.txt (please choose a file that does not have a pending change)

    * tf edit foo.txt


    Michal Malecki TFS Version Control Client
    Thursday, May 13, 2010 3:52 PM
  • Hi Michal, Thanx for your interest. im sending trace info.. Commands,which i runned, are in order "properties, edit, properties".

    I controlled configuration. gloc is checked. Multiple Check-outs is checked too. No check-in policy defined and no notes required (maybe useful)..

     

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

    05/14/2010 09:46:52 (pid 5588, tid 5620, 0 ms) Web method running: [http://*.*.*.*:8080/Services/v1.0/ServerStatus.asmx] CheckAuthentication[Ser]

    05/14/2010 09:46:52 (pid 5588, tid 5620, 31 ms) Web method response: [http://*.*.*.*:8080/Services/v1.0/ServerStatus.asmx] CheckAuthentication[Ser] 69 ms

    05/14/2010 09:46:53 (pid 5588, tid 5620, 1125 ms) Web method running: [http://*.*.*.*:8080/Services/v1.0/GroupSecurityService.asmx] ReadIdentity[Ser]

    05/14/2010 09:46:54 (pid 5588, tid 5620, 1157 ms) Web method response: [http://*.*.*.*:8080/Services/v1.0/GroupSecurityService.asmx] ReadIdentity[Ser] 34 ms

    05/14/2010 09:46:54 (pid 5588, tid 5620, 1219 ms) Using cache file path C:\Documents and Settings\*****\Local Settings\Application Data\Microsoft\Team Foundation\2.0\Cache\VersionControl.config

    05/14/2010 09:46:54 (pid 5588, tid 5620, 1219 ms) Session ID: 1da4265c-e13b-4cca-b0f5-7bdcb501433b

    05/14/2010 09:46:54 (pid 5588, tid 5620, 1219 ms) Time spent getting service URL ISCCProvider: 0 ms

    05/14/2010 09:46:54 (pid 5588, tid 5620, 1219 ms) CreateWebRequest() -- Uri: http://*.*.*.*:8080/VersionControl/v1.0/repository.asmx

    05/14/2010 09:46:54 (pid 5588, tid 5620, 1219 ms) request.AutomaticDecompression: GZip

    05/14/2010 09:46:54 (pid 5588, tid 5620, 1219 ms) Web method running: [VersionControl/] QueryWorkspaces[Ver]

    05/14/2010 09:46:54 (pid 5588, tid 5620, 1251 ms) HTTP headers:

    Content-Encoding: 

    Vary: Accept-Encoding

    Transfer-Encoding: chunked

    Cache-Control: private, max-age=0

    Content-Type: application/soap+xml; charset=utf-8

    Date: Fri, 14 May 2010 06:46:40 GMT

    Server: Microsoft-IIS/6.0

    X-AspNet-Version: 2.0.50727

    X-Powered-By: ASP.NET

     

    05/14/2010 09:46:54 (pid 5588, tid 5620, 1251 ms) Web method response: [VersionControl/] QueryWorkspaces[Ver] 25 ms

    05/14/2010 09:46:54 (pid 5588, tid 5620, 1251 ms) Using cache file path C:\Documents and Settings\*****\Local Settings\Application Data\Microsoft\Team Foundation\2.0\Cache\VersionControl.config

    05/14/2010 09:46:54 (pid 5588, tid 5620, 1266 ms) CreateWebRequest() -- Uri: http://*.*.*.*:8080/VersionControl/v1.0/repository.asmx

    05/14/2010 09:46:54 (pid 5588, tid 5620, 1282 ms) request.AutomaticDecompression: GZip

    05/14/2010 09:46:54 (pid 5588, tid 5620, 1282 ms) Web method running: [VersionControl/] QueryPendingSets[Ver]

    05/14/2010 09:46:54 (pid 5588, tid 5620, 1313 ms) HTTP headers:

    Content-Encoding: 

    Vary: Accept-Encoding

    Transfer-Encoding: chunked

    Cache-Control: private, max-age=0

    Content-Type: application/soap+xml; charset=utf-8

    Date: Fri, 14 May 2010 06:46:40 GMT

    Server: Microsoft-IIS/6.0

    X-AspNet-Version: 2.0.50727

    X-Powered-By: ASP.NET

     

    05/14/2010 09:46:54 (pid 5588, tid 5620, 1313 ms) Web method response: [VersionControl/] QueryPendingSets[Ver] 44 ms

    05/14/2010 09:46:54 (pid 5588, tid 5080, 1485 ms) CreateWebRequest() -- Uri: http://*.*.*.*:8080/VersionControl/v1.0/repository.asmx

    05/14/2010 09:46:54 (pid 5588, tid 5080, 1485 ms) request.AutomaticDecompression: GZip

    05/14/2010 09:46:54 (pid 5588, tid 5080, 1485 ms) Web method running: [VersionControl/] QueryItemsExtended[Ver]

    05/14/2010 09:46:54 (pid 5588, tid 5080, 1626 ms) HTTP headers:

    Content-Encoding: 

    Vary: Accept-Encoding

    Transfer-Encoding: chunked

    Cache-Control: private, max-age=0

    Content-Type: application/soap+xml; charset=utf-8

    Date: Fri, 14 May 2010 06:46:40 GMT

    Server: Microsoft-IIS/6.0

    X-AspNet-Version: 2.0.50727

    X-Powered-By: ASP.NET

     

    05/14/2010 09:46:54 (pid 5588, tid 5080, 1626 ms) Web method response: [VersionControl/] QueryItemsExtended[Ver] 126 ms

    05/14/2010 09:46:55 (pid 5588, tid 5620, 2314 ms) CreateWebRequest() -- Uri: http://*.*.*.*:8080/VersionControl/v1.0/repository.asmx

    05/14/2010 09:46:55 (pid 5588, tid 5620, 2314 ms) request.AutomaticDecompression: GZip

    05/14/2010 09:46:55 (pid 5588, tid 5620, 2314 ms) Web method running: [VersionControl/] QueryWorkspaces[Ver]

    05/14/2010 09:46:55 (pid 5588, tid 5620, 2345 ms) HTTP headers:

    Content-Encoding: 

    Vary: Accept-Encoding

    Transfer-Encoding: chunked

    Cache-Control: private, max-age=0

    Content-Type: application/soap+xml; charset=utf-8

    Date: Fri, 14 May 2010 06:46:41 GMT

    Server: Microsoft-IIS/6.0

    X-AspNet-Version: 2.0.50727

    X-Powered-By: ASP.NET

     

    05/14/2010 09:46:55 (pid 5588, tid 5620, 2345 ms) Web method response: [VersionControl/] QueryWorkspaces[Ver] 23 ms

    05/14/2010 09:47:06 (pid 5588, tid 7892, 13840 ms) Web method running: [http://*.*.*.*:8080/Services/v1.0/CommonStructureService.asmx] ListProjects[Ser]

    05/14/2010 09:47:06 (pid 5588, tid 7892, 13886 ms) Web method response: [http://*.*.*.*:8080/Services/v1.0/CommonStructureService.asmx] ListProjects[Ser] 46 ms

    05/14/2010 09:47:07 (pid 5588, tid 5620, 14403 ms) Web method running: [http://*.*.*.*:8080/Services/v1.0/Registration.asmx] GetRegistrationEntries[Ser]

    05/14/2010 09:47:07 (pid 5588, tid 5620, 14434 ms) Web method response: [http://*.*.*.*:8080/Services/v1.0/Registration.asmx] GetRegistrationEntries[Ser] 25 ms

    05/14/2010 09:47:08 (pid 5588, tid 4996, 15294 ms) Web method running: [http://*****/_vti_bin/Lists.asmx] GetListCollection[Wss]

    05/14/2010 09:47:08 (pid 5588, tid 4996, 15357 ms) Web method response: [http://*****/_vti_bin/Lists.asmx] GetListCollection[Wss] 52 ms

    05/14/2010 09:47:08 (pid 5588, tid 5080, 15951 ms) Web method running: [http://*.*.*.*:8080/WorkItemTracking/v1.0/ClientService.asmx] GetMetadataEx2[Wor]

    05/14/2010 09:47:08 (pid 5588, tid 5080, 15998 ms) Web method response: [http://*.*.*.*:8080/WorkItemTracking/v1.0/ClientService.asmx] GetMetadataEx2[Wor] 67 ms

    05/14/2010 09:47:08 (pid 5588, tid 5620, 16029 ms) CreateWebRequest() -- Uri: http://*.*.*.*:8080/VersionControl/v1.0/repository.asmx

    05/14/2010 09:47:08 (pid 5588, tid 5620, 16029 ms) request.AutomaticDecompression: GZip

    05/14/2010 09:47:08 (pid 5588, tid 5620, 16029 ms) Web method running: [VersionControl/] QueryItems[Ver]

    05/14/2010 09:47:08 (pid 5588, tid 5620, 16045 ms) HTTP headers:

    Content-Encoding: 

    Vary: Accept-Encoding

    Transfer-Encoding: chunked

    Cache-Control: private, max-age=0

    Content-Type: application/soap+xml; charset=utf-8

    Date: Fri, 14 May 2010 06:46:54 GMT

    Server: Microsoft-IIS/6.0

    X-AspNet-Version: 2.0.50727

    X-Powered-By: ASP.NET

     

    05/14/2010 09:47:08 (pid 5588, tid 5620, 16045 ms) Web method response: [VersionControl/] QueryItems[Ver] 11 ms

    05/14/2010 09:47:08 (pid 5588, tid 5620, 16076 ms) CreateWebRequest() -- Uri: http://*.*.*.*:8080/VersionControl/v1.0/repository.asmx

    05/14/2010 09:47:08 (pid 5588, tid 5620, 16076 ms) request.AutomaticDecompression: GZip

    05/14/2010 09:47:08 (pid 5588, tid 5620, 16076 ms) Web method running: [VersionControl/] QueryItemsExtended[Ver]

    05/14/2010 09:47:08 (pid 5588, tid 5620, 16092 ms) HTTP headers:

    Content-Encoding: 

    Vary: Accept-Encoding

    Transfer-Encoding: chunked

    Cache-Control: private, max-age=0

    Content-Type: application/soap+xml; charset=utf-8

    Date: Fri, 14 May 2010 06:46:54 GMT

    Server: Microsoft-IIS/6.0

    X-AspNet-Version: 2.0.50727

    X-Powered-By: ASP.NET

     

    05/14/2010 09:47:08 (pid 5588, tid 5620, 16092 ms) Web method response: [VersionControl/] QueryItemsExtended[Ver] 10 ms

    05/14/2010 09:47:09 (pid 5588, tid 5080, 16248 ms) Web method running: [http://*.*.*.*:8080/WorkItemTracking/v1.0/ClientService.asmx] GetStoredQueries[Wor]

    05/14/2010 09:47:09 (pid 5588, tid 5080, 16264 ms) Web method response: [http://*.*.*.*:8080/WorkItemTracking/v1.0/ClientService.asmx] GetStoredQueries[Wor] 12 ms

    05/14/2010 09:47:09 (pid 5588, tid 5080, 16279 ms) Web method running: [http://*.*.*.*:8080/WorkItemTracking/v1.0/ClientService.asmx] GetStoredQueries[Wor]

    05/14/2010 09:47:09 (pid 5588, tid 5080, 16295 ms) Web method response: [http://*.*.*.*:8080/WorkItemTracking/v1.0/ClientService.asmx] GetStoredQueries[Wor] 7 ms

    05/14/2010 09:47:10 (pid 5588, tid 7892, 18046 ms) CreateWebRequest() -- Uri: http://*.*.*.*:8080/VersionControl/v1.0/repository.asmx

    05/14/2010 09:47:10 (pid 5588, tid 7892, 18046 ms) request.AutomaticDecompression: GZip

    05/14/2010 09:47:10 (pid 5588, tid 7892, 18046 ms) Web method running: [VersionControl/] QueryItems[Ver]

    05/14/2010 09:47:10 (pid 5588, tid 6716, 18109 ms) Web method running: [http://gbhaltfssrv/ReportServer/ReportService2005.asmx] ListChildren[Rep]

    05/14/2010 09:47:10 (pid 5588, tid 7892, 18109 ms) HTTP headers:

    Content-Encoding: 

    Vary: Accept-Encoding

    Transfer-Encoding: chunked

    Cache-Control: private, max-age=0

    Content-Type: application/soap+xml; charset=utf-8

    Date: Fri, 14 May 2010 06:46:56 GMT

    Server: Microsoft-IIS/6.0

    X-AspNet-Version: 2.0.50727

    X-Powered-By: ASP.NET

     

    05/14/2010 09:47:10 (pid 5588, tid 7892, 18109 ms) Web method response: [VersionControl/] QueryItems[Ver] 63 ms

    05/14/2010 09:47:11 (pid 5588, tid 6716, 18140 ms) Web method response: [http://gbhaltfssrv/ReportServer/ReportService2005.asmx] ListChildren[Rep] 65 ms

    05/14/2010 09:47:44 (pid 5588, tid 5620, 51732 ms) CreateWebRequest() -- Uri: http://*.*.*.*:8080/VersionControl/v1.0/repository.asmx

    05/14/2010 09:47:44 (pid 5588, tid 5620, 51732 ms) request.AutomaticDecompression: GZip

    05/14/2010 09:47:44 (pid 5588, tid 5620, 51732 ms) Web method running: [VersionControl/] QueryPendingSets[Ver]

    05/14/2010 09:47:44 (pid 5588, tid 5620, 51747 ms) HTTP headers:

    Content-Encoding: 

    Vary: Accept-Encoding

    Transfer-Encoding: chunked

    Cache-Control: private, max-age=0

    Content-Type: application/soap+xml; charset=utf-8

    Date: Fri, 14 May 2010 06:47:30 GMT

    Server: Microsoft-IIS/6.0

    X-AspNet-Version: 2.0.50727

    X-Powered-By: ASP.NET

     

    05/14/2010 09:47:44 (pid 5588, tid 5620, 51747 ms) Web method response: [VersionControl/] QueryPendingSets[Ver] 8 ms

    05/14/2010 09:47:44 (pid 5588, tid 5620, 51747 ms) CreateWebRequest() -- Uri: http://*.*.*.*:8080/VersionControl/v1.0/repository.asmx

    05/14/2010 09:47:44 (pid 5588, tid 5620, 51763 ms) request.AutomaticDecompression: GZip

    05/14/2010 09:47:44 (pid 5588, tid 5620, 51763 ms) Web method running: [VersionControl/] QueryItemsExtended[Ver]

    05/14/2010 09:47:44 (pid 5588, tid 5620, 51794 ms) HTTP headers:

    Content-Encoding: 

    Vary: Accept-Encoding

    Transfer-Encoding: chunked

    Cache-Control: private, max-age=0

    Content-Type: application/soap+xml; charset=utf-8

    Date: Fri, 14 May 2010 06:47:30 GMT

    Server: Microsoft-IIS/6.0

    X-AspNet-Version: 2.0.50727

    X-Powered-By: ASP.NET

     

    05/14/2010 09:47:44 (pid 5588, tid 5620, 51794 ms) Web method response: [VersionControl/] QueryItemsExtended[Ver] 38 ms

    Friday, May 14, 2010 7:04 AM
  • Hi,

    You can refer to the following link:

    http://social.msdn.microsoft.com/Forums/en-US/tfsversioncontrol/thread/57fdc09e-e29c-4e69-b9c4-dea15656c49d

    For more information, you can see Martin Woodward's blog.

    Hope it helps! If you have any concern, please feel free to let me know!

    Best Regards,

    Cathy Kong

    Sunday, May 16, 2010 3:52 PM
    Moderator
  • Hi Cathy, thanks for reply.

    This link was about newly added files. my files are already in workspaces.. i want to just get latest version when i check out a file.. like VSS..

    Tuesday, May 18, 2010 6:41 AM
  • Hi, 

    It turns out that this is by design, the reason you can refer to Why doesn’t  Team Foundation get the latest version of a file on checkout?

    In this article, some solutions can be used to meet your needs.

    Hope it helps! If you have any concern, please feel free to let me know!

    Best Regards,

    Cathy Kong

     

    • Marked as answer by Eren_Cetin Wednesday, May 19, 2010 9:24 AM
    Wednesday, May 19, 2010 1:54 AM
    Moderator
  • Thnx Cathy,

    The macro works well, but i dont understand, why gloc feature doesnt work. TFS has a no-working solution too :) ...

    Thank you again.. 

    Wednesday, May 19, 2010 9:30 AM
  • Cathy,

    this blog post is about TFS 2005. Starting with TFS 2008 we support get latest on checkout.

    Eren, I'm sorry for not responding earlier. You web trace does not contain actual soap messages. If you still want to solve this problem, please email me at michalma in the microsoft.com domain, and we will work on it offline.


    Michal Malecki TFS Version Control Client
    Wednesday, May 19, 2010 6:13 PM