IsOnLocalBranch

(VTScada Layer module. Obtain LayerRoot using the following script-only statement: )

    LayerRoot = \System.GetLoadedAppInstance(GetGUID(0, \LocalGUID));
Description: Returns TRUE if the local machine is maintaining changes that have not been deployed within the repository.
Returns: Boolean
Usage: Script or steady state.
Function Groups: Configuration Management
Related to: HasCompilationErrors | IsAppEditable | IsRunOnly | HasUndeployedChanges | GetAppInstance | GetLoadedAppInstance | GetOEMLayer
Format: LayerRoot.IsOnLocalBranch()
Parameters: None
Comments:

Also defined as the repository tip being on the local branch.
Useful for determining whether there is anything that can be deployed or reverted.
Note that a steady-state call to this function will not be updated automatically with a repository change.

The Layer object can be acquired using GetAppInstance, GetLoadedAppInstance or GetOEMLayer.