Constants (TCVcsConst.pas)
Return to Introduction  Previous page  Next page
This file contains the constant definitions for the API. Some of the important ones are:

Browse Folder Dialog box
 
  btFolders    = 0;  
  btFiles    = 1;  
 
Label Types

lt_VersionLabel    = 1;  
lt_PromotionLabel    = 2;  

View Types

vt_VersionLabel    = 1;  
vt_PromotionLabel    = 2;  
vt_Date       = 4;  


Action ID's for multiple files

  act_Checkin   = 1;  
  act_Checkout  = 2;  
  act_Get       = 3;  
  act_Promote   = 4;  
  act_Lock      = 5;  
  act_Unlock    = 6;  

File Status


VCS_STATUS_INVALID        = -1;     // Status could not be obtained, don't rely on it  
VCS_STATUS_NOTCONTROLLED  = $0000;  // File is not under source control  
VCS_STATUS_CONTROLLED     = $0001;  // File is under source code control  
VCS_STATUS_CHECKEDOUT     = $0002;  // Checked out to current user at local path  
VCS_STATUS_OUTOTHER       = $0004;  // File is checked out to another user  
VCS_STATUS_OUTMULTIPLE    = $0010;  // File is checked out to multiple people  
VCS_STATUS_OUTOFDATE      = $0020;  // The file is not the most recent  
VCS_STATUS_DELETED        = $0040;  // File has been deleted from the project  
VCS_STATUS_FROZEN         = $0080;  // No more revisions allowed  
VCS_STATUS_SHARED         = $0200;  // File is shared between projects  
VCS_STATUS_MODIFIED       = $0800;  // Local file has been modified  
VCS_STATUS_OUTBYUSER   = $1000;  // File is checked out by current user someplace  

Check In Flags

ci_CheckInIfUnchanged = 1;        
ci_LeaveLocked = 2;               
ci_MoveVersion = 4;               
ci_ForceBranch = 8;               
ci_MakeWorkfileReadonly = 16;     
ci_DeleteWorkFile = 32;           

History Report Columns

hrNone       = 0;  
hrRevisionName    = 1;  
hrComments       = 2;  
hrTimestamp       = 4;  
hrAuthor       = 8;  
hrLockedBy       = 16;  
hrVersionLabels    = 32;  
hrPromotionLevels    = 64;  

Error Codes

Err_UnknownError = -1;  
Err_OK = 0;  
Err_VersionAlreadyAssigned = 2;  
Err_FileNotLockedBy = 3;  
Err_FileNotChanged = 4;  
Err_ErrorCreatingRevision = 5;  
Err_CannotFindRevision = 6;  
Err_ObjectHasLock = 10;  
Err_InsufficientAccess = 14;  
Err_UserAlreadyContained = 23;  
Err_GroupAlreadyContained = 24;  
Err_CannotDeleteSpecialGroup = 25;  
Err_CannotDeleteSuperUser = 26;  
Err_GroupContainsGroup = 27;  
Err_RecordModifiedByOther = 28;  
Err_InvalidPassword = 29;  
Err_InvalidIndex = 30;  
Err_LockAlreadyExists = 31;  
Err_CannotFindLock = 32;  
Err_FileNotLocked = 33;  
Err_RevisionNotLocked = 34;  
Err_RevisionNotLockedBy = 35;  
Err_CannotLocateLabel = 38;  
Err_InvalidName = 39;  
Err_ObjectNotFound = 40;  
Err_FileLockedByUser = 41;  
Err_FileLocked = 42;  
Err_ErrorCreatingFile = 43;  
Err_PathNotSpecified = 44;  
Err_NotCheckedOutTo = 45;  
Err_FileIsWritable = 46;  
Err_VersionNotFound = 47;  
Err_NotLoggedIn = 48;  
Err_ConnectionNotDefined = 49;  
Err_LocalFileNotFound = 50;  
Err_CannotFindVersion = 51;  
Err_GroupNotFound = 52;  
Err_CouldNotCreateGroup = 53;  
Err_ObjectNameAlreadyInUse = 54;  
Err_CannotFindView = 55;  
Err_FileHasBeenRemoved = 56;  
Err_RenameNotSupported = 57;  
Err_RevisionBranched = 58;  
Err_Offline = 59;  
Err_FileNotShared = 60;  
Err_ServerError = 61;  
Err_FilesTheSame = 62;  
Err_CannotRenameSharedFile = 63;  
Err_FileGroupsNotSupported = 64;  
Err_CannotCheckOutInPromotionView = 65;  
Err_CannotCheckInInPromotionView = 66;  
Err_CannotDeleteUserWithLocks = 67;  
Err_HasOfflineLock = 68;  
Err_CannotDelRevisionWithBranch = 69;  
Err_RevisionIsLocked = 70;  
Err_ServerInsufficientSpace = 71;  
Err_ClientInsufficientSpace = 72;  
Err_NoRevisions = 73;  
Err_PersonalLicense = 74;  
Err_NoLicenses = 75;  
Err_ServerBusy = 76;  
Err_FileFrozen = 77;  
Err_InvalidConnection = 78;  
Err_AlreadyConnected = 79;  
Err_NotConnected = 80;  
Err_CouldNotConnectToServer = 81;  
Err_VersionDoesNotExist = 82;  


 


© 1995-2018 MCN Software