roffe99

Hi!

I have noticed a strange behavior of TFS. If I have a file that is not read only and not checked out, then start to edit this file in Visual Studio, the file still isn't checked out!

On read only files I'm able to start edit and then get a question if I would like to check out the file.

Anyone knows if there is a workaround on this or maybe a patch

Best regards

/Rolf



Re: Team Foundation Server - Version Control TFS doesn't check out readable files

Dmytro Lapshyn

Hi Rolf,

Sorry to say that, but it's a known issue with TFS 1.0 confirmed by Microsoft:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1687528&SiteID=1 (see the last post by Richard Berg MSFT)

The workaround is, therefore, to find what's making the file writeable on the local disk and prevent this from happening in the future.






Re: Team Foundation Server - Version Control TFS doesn't check out readable files

Jeff B.

Here's a tip that may help:

  1. Right-click the solution node within the Solution Explorer and select Get Specific Version...
  2. Check the "Overwrite writeable files that are not checked out".
  3. Check the "Force get of file versions already in workspace".
  4. Click the "Get" button.

This is not necessarily the most convenient thing to do (I agree that "get latest" should prompt you to overwrite writeable files) but it's what I typically do once I realize any of my files may had the read only attribute turned off.






Re: Team Foundation Server - Version Control TFS doesn't check out readable files

Richard Berg MSFT

If you check "force get" but not "overwrite", we will prompt you for each writable file. This way is safer unless you are certain the "overwrite" option won't destroy any work you have on disk.