Sign In
Mohamed Mahmoud (El-Geish)
TW9oYW1lZCBFbC1HZWlzaA==
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
Algorithms
C++
Cartoon
Concurrency
Debugging
Development
DGML
How To
i18n
Metrics
Security
Source Control
SQL
Testing
VSTF
WCF
Archive
Archives
March 2010
(1)
February 2010
(4)
January 2010
(2)
November 2009
(2)
October 2009
(1)
September 2009
(1)
August 2009
(2)
July 2009
(1)
May 2009
(1)
April 2009
(19)
March 2009
(40)
February 2009
(3)
August 2008
(1)
July 2008
(2)
June 2008
(2)
May 2008
(1)
April 2008
(2)
March 2008
(3)
February 2008
(2)
January 2008
(6)
December 2007
(5)
November 2007
(1)
April, 2009
MSDN Blogs
>
Mohamed Mahmoud (El-Geish)
>
April, 2009
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Mohamed Mahmoud (El-Geish)
How to: Query All Labels on a Folder Recursively?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
3
Comments
To do this, you can't call query labels with a wildcard character, you need to do the following: - Get all items blow $/Dir1 using GetItems - Loop through them calling QueryLabels on each one. Here's a code snippet: VersionControlServer sc = tfs.GetService<...
Mohamed Mahmoud (El-Geish)
How to: Move a Shelveset to Another Branch?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
8
Comments
A very handy power tool is tfpt unshelve. It’s capable of migrating a shelveset from a branch to another, it does that by performing a baseless merge, so you will need to resolve the conflicts produced. The syntax of the command looks like the following...
Mohamed Mahmoud (El-Geish)
How to: Receive Daily E-mail Notifications?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
4
Comments
You can receive a daily email that has a compiled list of notifications, but you will need to subscribe programmatically: IEventService eventService = ( IEventService ) new TeamFoundationServer ( "http://tfs:8080" ).GetService( typeof ( IEventService...
Mohamed Mahmoud (El-Geish)
Cartoon #7: Protected
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
1
Comments
protected (C# Reference)
Mohamed Mahmoud (El-Geish)
How to: Diff Shelved Files?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
1
Comments
You can run: tf diff /shelveset:shelvesetName;DOMAIN\ownerUserName Please note that this will diff the shelved changes against the unmodified version, not necessarily the latest version, just like what the you get from clicking compare in the shelveset...
Mohamed Mahmoud (El-Geish)
How to: List Changesets Between Two Labeled Versions?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
2
Comments
You can achieve that behavior by running: tf hist rootItemSpec /r /version:LstartLabel~LendLabel Here’s my scenario: tf hist /i File.cs Changeset Change User Date Comment --------- -------------------------- ------------- ---------- -------- 65 edit mohamedg...
Mohamed Mahmoud (El-Geish)
How to: View History of an Item Across Branches?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
1
Comments
You can use tfpt history /followbranches to follow the history of an item across branches. We are looking into supporting this in the history dialog in the next version . You can see which versions are ported over during the merge operation if you use...
Mohamed Mahmoud (El-Geish)
How to: Switch Between TFS and VSS in Old IDEs?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
1
Comments
If you have an IDE that uses the MSSCCI provider, like VS 2003 or VB6, and you want to switch between TFS and VSS because you have projects on both systems, you will have to change the provider every time you switch. The thing is that setting is stored...
Mohamed Mahmoud (El-Geish)
How to: Force a Check-in to be Linked to Work Items?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
1
Comments
Well, the answer to this one is pretty easy and straight-forward. You can accomplish that using a check-in policy. For example, to force users to link check-ins to work items that are not closed, you may do the following: Add a Team Query to the desired...
Mohamed Mahmoud (El-Geish)
How to: Change TFS Temp Folder?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
2
Comments
TFS uses a temp folder to get files that you view. The location of that folder is %TMP%\TFSTemp. It’s not configurable via TFS, tf.exe, or Visual Studio. However, you can just set the TMP environment variable. Simply: set TMP=D:\Temp set TEMP=%TMP% md...
Mohamed Mahmoud (El-Geish)
Handy Tips for tf.exe
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
2
Comments
Using tf.exe gives you more options and more control, here are some tips that might come handy: For item specs: You can use wildcards with most of the commands Just like most command-line apps, you can supply relative path parts (like . and ..), you can...
Mohamed Mahmoud (El-Geish)
How to: Copy Workspace Mappings?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
2
Comments
A common scenario that you may see is the need to share/sync workspace mappings amongst team members. A developer adds a new dependency in a certain project and changes his/her mappings to get this library, and everyone else in the team now needs to do...
Mohamed Mahmoud (El-Geish)
How to: Switch Branches in a Workspace Without Getting All the Files of the New Branch?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
1
Comments
One of the new features added in VSTF 2008 SP1 is that you can switch to another branch in your workspace and you don’t need to download all the files of the new branch. TFS will only download the files that differ in the new branch, if you use tf get...
Mohamed Mahmoud (El-Geish)
How to: Move Your Workspace to Another Drive?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
0
Comments
A common problem occurs when the drive that contains your workspaces runs out of disk space, or when you find yourself in a situation that you have to move your workspace to another drive. This might get tricky because your workspace mappings are stored...
Mohamed Mahmoud (El-Geish)
How to Get List of Changes in a Shelveset Programmatically?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
1
Comments
In a previous post , we used the command-line to list the changes in a shelveset. This time we are going to use an API to get the changes by calling: VersionControlServer.QueryShelvedChanges You have to be a valid user that can connect to Version Control...
Mohamed Mahmoud (El-Geish)
Pitfalls of Baseless Merge
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
2
Comments
A previous post was dedicated to show the benefits of a baseless merge, this one shows the pitfalls: When you perform a baseless merge, renames and deletes will not be merged If you get conflicts, the usual 3-way merge is not possible, you will have to...
Mohamed Mahmoud (El-Geish)
Nested For-each Loops in SQL
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
0
Comments
Usually, it's not recommended that you use loops in SQL unless you need to. You should use set-based queries instead. However, if you need to, there are many ways to loop, one of them is using cursors. For example, let's say that you have multiple DBs...
Mohamed Mahmoud (El-Geish)
Cartoon #6: Public
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
3
Comments
public (C# Reference)
Mohamed Mahmoud (El-Geish)
How to: List Changes in a Shelveset?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
2
Comments
When you run tf shelvesets shelvesetName /format:detailed you get the shelveset’s name and some metadata associated with it, but not the changes. To get a list of the changes in a changeset, run: tf stat /shelveset:shelvesetName;DOMAIN\ownerUserName The...
Page 1 of 1 (19 items)