Does anyone know if the following commands are detailed or listed in any tables or config files?
Table: tbl_Version Field: Command
- List item
- Edit = 2
- Type = 4
- Add folder = 5
- Add file = 7
- Rename = 8
- Rename,edit = 10
- Delete = 16
- Delete,rename = 24
- Undelete = 32
- Undelete,edit = 34
- Branch = 68
- Branch,delete = 84
- Merge = 128
- Merge, edit = 130
- Merge,type,edit = 134
- Merge, rename, edit = 138
- Merge,delete = 144
- Merge,delete,rename = 152
- Merge,undelete = 160
- Merge,undelete,edit = 162
- Merge,branch = 196
- Merge,branch,edit = 198
In case anyone else is trying to query against tbl_Version (TFS 2017 Update3), the enum bits shown by Jesse should be shifted one place in the database. I'm not sure why the ChangeType enum would be setup as Jesse describes, as it would violate .NET design guideline CA1008 and common sense by apparently setting 'None'=1 instead of 0. This makes Rick Web's values pretty close to correct. The bit flags of the 'Command' col in the DB are therefore:
Here's some crappy SQL to decode them as a space-separated list in your SELECT-
They'rea binary Flag (e.g. Merge, Undelete is Merge+Undelete => 128+32 = 160) the base values are stored in the
Microsoft.TeamFoundation.VersionControl.Client.ChangeType
(docs here) and the base value of each change type can be found by either referencing theMicrosoft.TeamFoundation.VersionControl.Client
assembly or by reflecting te sources:PS: it looks like your original table has a number of errors in it.