2

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
0

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 the Microsoft.TeamFoundation.VersionControl.Client assembly or by reflecting te sources:

[Flags]
public enum ChangeType
{
    Add = 2,
    Branch = 128,
    Delete = 32,
    Edit = 4,
    Encoding = 8,
    Lock = 512,
    Merge = 256,
    None = 1,
    Property = 8192,
    Rename = 16,
    Rollback = 1024,
    SourceRename = 2048,
    Undelete = 64
}

PS: it looks like your original table has a number of errors in it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.