‘tf checkin’ exit codes

All tf.exe commands return one of these: public enum ExitCode { Unknown = -1, Success = 0, PartialSuccess = 1, UnrecognizedCommand = 2, Failure = 100, } You should never see -1.  Code 2 is only for the very specific case where you mistype tf someboguscommand <…>.  The important exit codes are 0, 1, and 100. …

3

SourceSafe Explorer: what does the "build tree" checkbox do?

When you run Get on a folder (aka project) in VSS Explorer, you’re presented with these options: (if you don’t get this dialog, try holding Shift) Most of the options are obvious, but not “build tree” — at least not to me.  The online help explains it thusly: Projects only. Overrides the working folders for the…

1

TFS Version Control Concepts 3: Item Versions and the two meanings of ‘Changeset’

Let’s recap Items one more time. Items are unique.  They have an ID that no other item does. Items are versioned.  Like all version control systems, TFVC is about making it easy to store successive versions of the same item and retrieve old ones when necessary. Items have names.  Yes, plural.  At a rudimentary level,…

6

TFS Version Control Concepts 2b: Namespaces in practice

Command Line usage In Source Control Explorer, you’re always operating on pending space.  At the command line, it’s less clear.  Consider the following setup: you’re working in a directory $/project that’s mapped to c:\project and contains two files a.cs and b.cs.  For the sake of argument, we’ll say they have itemIDs 1 and 2. c:\project>tf ren…

6

TFS Version Control Concepts 2: Item Names

Last time we learned that the principle objects in the source control system are called Items, and a few of their basic properties.  That was awhile ago so let’s recap: Items are unique.  They have an ID that no other item does. Items are versioned.  Like all version control systems, TFVC is about making it…

7

Did you know? How to bring up old-style dialogs in SourceSafe 2005

One of the changes made between VSS 6.0 and 2005 was to replace ancient file dialogs with common dialogs from the Windows Shell wherever possible.  Check out the 6.0 version of Set Working Folder: It just screams “Win 3.1”, complete with floppy diskette icon in the dropdown.  By contrast, if you install VSS 2005 on…

6

Binding Outlook macros to a keyboard shortcut

When I updated Buck’s TFS macros for Outlook 2007, I neglected to demonstrate how they were installed.  Enough has shifted around in ’07 that the question has come up a few times.  Let’s burn some bandwidth. 1) go to Tools -> Macro -> VB Editor.  Doubleclick “ThisOutlookSession” and paste in the code from the previous blog…

1