See the Documatic for the following methods in %Studio.SourceControl.ISC:
classmethod Lock(Admin As %Boolean = 0) as %Status
Lock the source control hooks for this instance.
The default setting will be "Locked". Passing a '1' for the Admin parameter will set the instance to AdminLocked.
See Locked for more details.
classmethod Locked() as %String
Returns value that shows whether or not this instance is "Locked"
Return values are:
- "": Instance has never been Locked or Unlocked (default)
- 0: Instance is Unlocked
- 1: Instance is Locked
- 2: Instance is AdminLocked
When the instance is Locked or AdminLocked, no changes can be made via Studio. It is possible to change from Locked to NotLocked via different UIs. When an instance is AdminLocked it should only be possible to unlock it via the Unlock method.
classmethod Unlock() as %Status
Unlock the source control hooks for this instance.