<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>TFS Version Control and more .. : Scenarios</title><link>http://blogs.msdn.com/mrod/archive/tags/Scenarios/default.aspx</link><description>Tags: Scenarios</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>I cannot see my workspace</title><link>http://blogs.msdn.com/mrod/archive/2008/01/09/i-cannot-see-my-workspace.aspx</link><pubDate>Wed, 09 Jan 2008 23:51:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7045427</guid><dc:creator>mrod</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/mrod/comments/7045427.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mrod/commentrss.aspx?PostID=7045427</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mrod/rsscomments.aspx?PostID=7045427</wfw:comment><description>&lt;p&gt;In the past we have had some customers report an issue where when they open Visual Studio the workspace owner is to 'Administrator' instead of their logon user name and hence they cannot get to their workspace and continue their work.&lt;/p&gt;  &lt;p&gt;Since it has happened more than once I decided to make a quick post so it gets indexed and hopefully people are able to find the answer without going into our forums or support.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;The Problem&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;You don't see any of your workspaces and whenever you create a new one it is assigned to Administrator instead of your log on user name.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;The Solution&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Windows has functionality to store UserName and Passwords for servers in a cache and use those credentials when communicating with those servers. This cache can be found under:&lt;/p&gt;  &lt;p&gt;Control Panel -&amp;gt; User Accounts -&amp;gt;Manage Passwords (XP)&lt;/p&gt;  &lt;p&gt;Control Panel -&amp;gt; User Accounts -&amp;gt; User Accounts -&amp;gt; Manage Your Network Passwords (Vista)&lt;/p&gt;  &lt;p&gt;The majority of the time our customer has an entry in there for their TFS Server indicating to use the Administrator account or some other alternate account. The way to fix it is to remove that entry from the list.&lt;/p&gt;  &lt;p&gt;Here is what that UI looks like in Vista:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/mrod/WindowsLiveWriter/WorkspaceConnection_E2DB/image_2.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="406" alt="image" src="http://blogs.msdn.com/blogfiles/mrod/WindowsLiveWriter/WorkspaceConnection_E2DB/image_thumb.png" width="411" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Here is a forum post that also details the scenario:&lt;/p&gt;  &lt;p&gt;&lt;a title="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2502323&amp;amp;SiteID=1" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2502323&amp;amp;SiteID=1"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2502323&amp;amp;SiteID=1&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7045427" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mrod/archive/tags/Scenarios/default.aspx">Scenarios</category></item><item><title>Merge your renames at the root</title><link>http://blogs.msdn.com/mrod/archive/2007/12/07/merge-your-renames-at-the-root.aspx</link><pubDate>Fri, 07 Dec 2007 23:33:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6696820</guid><dc:creator>mrod</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/mrod/comments/6696820.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mrod/commentrss.aspx?PostID=6696820</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mrod/rsscomments.aspx?PostID=6696820</wfw:comment><description>&lt;p&gt;True Rename, not those delete/add solutions, is one of those things that is extremely tricky to get right and even more on merge scenarios. Unfortunately, I have seen some of our customers struggle with them resulting in confusion within the organization and at times build breaks. For this reason, I wanted to write a quick blog post to outline one of those things about our product that "does not make sense" but it happens, which can get you in an inconsistent state and hence mad at us.&lt;/p&gt; &lt;p&gt;We will be working to find out how to solve this issue, but in the mean time please have as a good practice to always merge at the root.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;The Scenario&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;A user, Bob, has a branch named MAIN&lt;/li&gt; &lt;li&gt;Bob branches MAIN to a folder called FEATURE1 for new development&lt;/li&gt; &lt;li&gt;Inside the MAIN branch Bob renames one of the files from foo.cs to bar.cs (you can do this at the folder level as well and it will still reproduce)&lt;/li&gt; &lt;li&gt;Bob then makes further edits on that file as time passes by&lt;/li&gt; &lt;li&gt;For some reason Bob has to merge the file back into FEATURE1 so he selects is and goes through the merge wizard&lt;/li&gt; &lt;li&gt;The merge is calculated and the edits are brought over but NOT the rename&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;The file inside FEATURE1 is still called foo.cs &lt;/p&gt; &lt;p&gt;&lt;strong&gt;The Problem&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Well, now you ask why if the range includes the rename this is not bringing it over. What happens if something else is dependant on this new name?&lt;/p&gt; &lt;p&gt;Now there are reasons but at a high level I think we need to rethink our reasoning and see if we can handle this scenario better.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;The Solution&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;The solution is simple, merge at the root.&amp;nbsp; If you execute a merge between MAIN and FEATURE1 everything will work as you expect, and you get a conflict because for us all renames are conflicts. Go and select Merge Changes for Me and select the name you would like (bar.cs) and you have completed the merge.&lt;/p&gt; &lt;p&gt;Regardless of our logic we will always recommend our customers to merge renames and for that fact a lot of the changes at the root instead of executing it from an individual file, so please keep that as good practice.&lt;/p&gt; &lt;p&gt;Hopefully this saved you some headaches and if you see other things like this one let us know.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6696820" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mrod/archive/tags/Scenarios/default.aspx">Scenarios</category></item><item><title>tfs workspaces and reinstalling the OS or TeamExplorer</title><link>http://blogs.msdn.com/mrod/archive/2007/12/05/tfs-workspaces-and-reinstalling-the-os-or-teamexplorer.aspx</link><pubDate>Thu, 06 Dec 2007 01:55:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6671557</guid><dc:creator>mrod</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/mrod/comments/6671557.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mrod/commentrss.aspx?PostID=6671557</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mrod/rsscomments.aspx?PostID=6671557</wfw:comment><description>&lt;p&gt;In some enterprises and even inside of Microsoft we often partition our drives in two sections. The OS and often used applications (this is often our C: drive) and the data and enlistment section (this is often the D:/ drive)&lt;/p&gt; &lt;p&gt;Recently, I received a question about what happens to the tf workspace cache when I reimage my OS drive and how I can get it repopulated again. Before we answer the question I think there is one core set of steps and then three scenarios on top of that which result in different actions from the user at the end.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Scenario1&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;the user has a need to re-image or reinstall the Operating System on this box&lt;/li&gt; &lt;li&gt;the OS is reinstalled by the user, the machine name is kept&lt;/li&gt; &lt;li&gt;the user then install Visual Studio and TFS once again&lt;/li&gt; &lt;li&gt;the user connects to the server&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;In this case, there is nothing you have to do as a user. The workspace cache file will be regenerated automatically&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Scenario 2&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;As part of the new OS install I actually changed my computer name. I reinstalled Visual Studio and the Team Explorer.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Well in this case you do have to tell TFS version control that the machine name for this workspace has been changed.&amp;nbsp; To do this you follow the documented syntax from msdn.&lt;/p&gt; &lt;p&gt;tf workspaces [/owner:ownername] [/computer:computername]&amp;nbsp; [/server:servername] [/format:(brief|detailed)]&amp;nbsp; [/updateUserName:oldUserName] [/updateComputerName:oldComputerName]  &lt;p&gt;The command to execute is:  &lt;p&gt;tf workspaces /server:servername /updateComputerName:oldcomputername &lt;p&gt;&lt;strong&gt;Scenario 3&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;I reinstalled the OS and only team explorer so Visual Studio is not installed and I use the command line so no UI please&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;This is different from the first scenario because there is no UI that is triggering an automatic regeneration of the client cache file.&amp;nbsp; In this case you need to force that to happen. For this will we again use the workspaces command. The syntax is:&lt;/p&gt; &lt;p&gt;tf workspaces /server:servername&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;There you have it ! How to reuse your workspace after a reinstalled.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6671557" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mrod/archive/tags/Scenarios/default.aspx">Scenarios</category></item></channel></rss>