|
|

March 2009 - Posts
-
-
It has been a while since the last time I wrote some C code, since I come from a C++ background, hence I seldom use scanf(). Without going into many details for the reasons why one should use scanf or cin , I just want to point out one difference on return Read More...
|
-
-
Using Windbg, aka Debugging Tools for Windows , is a great way for debugging, crash analysis, and reading dump files. If you’re not a keyboard person who likes to write commands and be in the driver’s seat, you might not like it at the first glance, but Read More...
|
-
Partial Classes and Methods (C# Programming Guide) Read More...
|
-
-
There’s no direct way to do that. Multiple check-out is a property of a team project, it's not namespace specific. However, I can think of 2 alternatives using use the " Lock " feature, because that’s what TFS does when a team projects is set Read More...
|
-
Did I mention that I’m a cartoonist? As you can see I draw my cartoons using OneNote. I hope this reminds you to shelve your local changes if you’re not checking them in: Read More...
|
-
You can find changesets if you open Source Control Explorer and hit Ctrl+G or choose Edit > Go to… However, this shows changesets with no details, you have to double click it first. If you want to see detailed info all at once, you can use the command-line: Read More...
|
-
In a previous post , the solution to that problem included manual intervention. There’s an easier way: click the "show all files" button in the solution explorer toolbar which shows all files on disk, then right-click an excluded item (it has Read More...
|
-
In a previous post , I talked about the deny option and how it’s evaluated. The documentation on MSDN is talking about conflicting permissions on the same level, however, in TFS2008 SP1, permissions are evaluated bottom up and the first match wins. If Read More...
|
-
!exploitable is a crash analyzer plug-in for windows debugger (windbg) that does post-mortem analysis of a crash and assists its security risk, very cool! The project is licensed under Microsoft Public License (Ms-PL) and you can download it at codeplex Read More...
|
-
When you would like to know what changes have been merged already between a source and a target you can run: tf merges sourceItemSpec targetItemSpec Usually you would like to view the merge history recursively when you are using folders are branch roots Read More...
|
-
If you view the history of an item that was renamed, you will see an entry like this in the history dialog: 123 rename username 06/02/2008 09:11:55 AM Comment Then you try to open the changeset details to know to old name, but it only shows the new name: Read More...
|
-
A customer was asking about this issue when he can see a certain file in source control explorer and locally on disk but it doesn’t show in Solution Explorer. What happened was the file was removed from the project file. If you're using C#, the project Read More...
|
-
Permissions in TFS are namespace based. The namespace doesn't have to exist to set a permission on. I can think of some scenarios when this is actually a requirement: You may like to set permissions on future items so that the permissions are effective Read More...
|
-
Here’s a walkthrough to setup TFS with HTTPS . There are some tips that you may find useful: You may want to avoid using common port numbers like 444 and 445 for TFS website and WSS admin website as other websites may be using them already You may want Read More...
|
-
Some thoughts about permissions, especially deny. Why deny? Because deny is the best way to apply the principle of least privilege . When a permission is set, it shouldn't matter what client is used to access TFS, the permissions are evaluated according Read More...
|
-
If you see this error: "One or more projects in the solution could not be loaded for the following reason(s): The application for the project is not installed." Then: Unexpected error encountered. It is recommended that you restart the application as Read More...
|
-
While merging or comparing files using the DiffMerge tool, and files have different encoding, you will see this message: "The character encodings on these files are different. Only files with the same character encoding can be merged or compared." Read More...
|
-
This post is not about merging an existing item to an non-existing one, which will be a (merge, branch) change. This post is about merging items that already exist but they were not branched. One of our customers had this problem, he had three branches: Read More...
|
-
When you check-in, TFS will warn you that you have conflicts and the check-in fails. However, you may want to preview the conflicts without proceeding with the check-in. In this case you can run tf checkin /validate which lets you test checking in without Read More...
|
-
For those who like the keyboard more than the mouse, here are some of the new keyboard shortcuts that Windows 7 is introducing: Win + Spacebar Aero desktop peek, just like that small rectangle at the right bottom corner next to the time display. Win + Read More...
|
-
To understand conflict types please read this article on MSDN . In this post I’ll focus on conflicts that need you to manually merge the files. Let’s rule out binary files first because TFS doesn’t compare them, and doesn’t store deltas of them, it stores Read More...
|
-
Software houses use different development platforms to suit their needs, but it’s more convenient to have one system for ALM . Today, I saw a demo of Teamprise, a product that enables users to access TFS from any machine that runs a JRE, and also has Read More...
|
-
One of our customers had this problem: developers on his team forget to get latest before check-in and they end up with many conflicts and sometimes they overwrite each others’ changes by mistake. One solution is to enforce a custom check-in policy: Follow Read More...
|
-
If you want to save time and network bandwidth when creating a branch, you can use tf branch /noget or /silent which tells the server not do perform the get operations while branching. The branch will be created but local copies of the items won’t be Read More...
|
-
If your TFS client cache is corrupted, you might see this error: --------------------------- Microsoft Visual Studio --------------------------- Error An item with the same key has already been added. --------------------------- OK --------------------------- Read More...
|
-
In a previous post, I answered this question using Diff APIs, which will require the items to be downloaded first. Here's a faster way to do it (thanks to MichalMa ): Use GetItem or GetItems method to get the Item objects for the files. If ContentLength Read More...
|
-
In a previous post , I mentioned some details about merge history bookkeeping. In a nutshell, when you merge, you are giving credit to the target branch for the range of versions you’re merging over. That’s why you see the merge change type pended on Read More...
|
-
I’m glad you asked, searched, and eventually got here, because the answer is: you can’t! You can modify comments and checkin notes in changesets but you can't change history, hence you can't add/remove files from changesets. Read More...
|
-
If you need to listen to TFS event notifications, you can subscribe to checkin event and make the server deliver the event info to a SOAP address , a web/ WCF service , or even a TCP listener that waits for that data and doesn't have to have access to Read More...
|
-
You can use the Difference.DiffFiles method which compares two files using the internal diff engine, and return the linked list of DiffSegment s: DiffSegment ds = Difference.DiffFiles(fileA, FileType.Detect(fileA, null), fileB, FileType.Detect(fileB, Read More...
|
-
Merging is transferring changes from merge source to merge target, just like any transaction, it’s based on the debit-credit system. Now let’s say that we built up some changes in the source branch, these will show up as merge candidates because these Read More...
|
-
You may try the following: Shrink SQL transaction log files using DBCC SHRINKFILE (see this KB ) Shrink SQL data files using DBCC SHRINKFILE or DBCC SHRINKDATABASE Destroy unneeded files (specify the /startcleanup flag) If you decide that you will need Read More...
|
-
If you haven’t already done so, go ahead and install VS 2008 SP1 to show the last check-in date column in Source Control Explorer. You can also view it through the command line if you run tf prop itemSpec and it will show up the last changed date. Read More...
|
-
You can use the administration web service, if you have permission, to kill a process on the server. Open up http://TFS:8080/VersionControl/v1.0/administration.asmx and invoke QueryServerRequests to get the process ID of the process you want to kill, Read More...
|
-
Here’s an interesting scenario, there are several files in several team projects that need to match after any of them was changed. There’s a way to do that, but it's not so direct, you'll need to write some code: Establish a merge relationship between Read More...
|
-
Did you notice that when you show folder history in the history dialog you end up with more entries than the one(s) you see when you use tf history with the no-prompt flag /i specified? Well, the default in the history dialog is to show folder history Read More...
|
-
You may run this command: tf workspaces /s:yourTFS This will flush the cache for that server and refresh it from the server. Read More...
|
|
|
|