class %Studio.SourceControl.ISC extends %Studio.SourceControl.BaseThis class is used internally by InterSystems. You should not make direct use of it within your applications. There is no guarantee made about either the behavior or future operation of this class.
Method Inventory (Including Private)
Methods (Including Private)
- 0 - No
- 1 - Yes
- 2 - Cancel
At the time of CheckOut(), a local backup of the item in its existing state is backed up to the file system with a .bak extension. This file will be used on Disconnected systems to restore to the previous state when UndoCheckout() is called. It can also be used for diffs from the original file state.
This should be run from the terminal, and the user will be prompted as to whether they want to export to the current ^Sources location or an alternate location (alternate is recommended).
The method will then iterate through all Classes, Routines, Include files, CSP Application files and Projects and will export them to ^Sources based on the mappings in the ^Sources global.
NOTE - this does not export "Generated" classes
Passing classesOnly as '1' will export only the baseline of the classes. This is useful for exporting all updated XML after changing to a new class compiler version.
Pass interactive as 0 in order to call this programmatically
Pass targetDirectory to specify the directory for export (NOTE - this cannot equal ^Sources for TrakCare exports)
Pass boolean changeToReadOnly to control whether the files should be changed to read-only after export (defaults to true)
Pass boolean includeMapped to control whether items mapped from other databases should be included in the export (defaults to true) The default value for this argument will be the inverse of the source hooks LockMapped setting for this namespace (so if nothing is set, then Mapped will be included by default)
If ToReadOnly is true, then the files will be manually changed to ReadOnly afterwards (for use when exporting from LIVE and leaving items uneditable afterwards)
If CheckOut is true, then the Source Control CheckOut/AddToSourceControl logic is used If includeMapped is true, then items mapped from other DBs will be exported, otherwise they will be skipped. The default value for this argument will be the inverse of the source hooks LockMapped setting for this namespace (so if nothing is set, then Mapped will be included by default)