Skip to content

Commit

Permalink
chore: remove srcver ported from client tools
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-pbarton committed Nov 15, 2024
1 parent b5ca7ae commit e8e7209
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions cls/SourceControl/Git/Production.cls
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
Class SourceControl.Git.Production Extends %RegisteredObject
{

/// This Parameter should be updated when synced from Perforce
Parameter SrcVer = "$Id: //custom_ccrs/_common/config/cls/Studio/SourceControl/Production.xml#3 $";

/// Revision number of this class when compiled as part of the //custom_ccrs/_common/config/... branch.
/// This version will not be updated (by design) when the class is integrated to other branches.
/// This allows the user to tell what version of the Studio client tools are in use.
Parameter Version = 4;

/// Exports settings for a given Production and each Config Item from
/// the ProductionDefinition as separate XMLs. These are exported to
/// the appropriate file based on nameMethod of the source control class
Expand Down Expand Up @@ -530,20 +522,6 @@ ClassMethod ExecDirectNoPriv(sql, args...) As %SQL.StatementResult
return rs
}

/// Handles all compile-time logic for this class
ClassMethod OnToolsCompile() [ CodeMode = objectgenerator, Internal ]
{
For i = 1:1:%class.Parameters.Count() {
If %class.Parameters.GetAt(i).Name = "SrcVer" Set valSrcVer = %class.Parameters.GetAt(i).Default
If %class.Parameters.GetAt(i).Name = "Version" Set indexVersion=i
}
If $D(indexVersion)&&($G(valSrcVer)["//custom_ccrs/_common/config/") {
Set %class.Parameters.GetAt(indexVersion).Default = $P($G(valSrcVer),"#",2)+1
Do %class.Parameters.GetAt(indexVersion).%Save()
}
Quit $$$OK
}

/// Returns value the Major.Minor version for this instance, so it can be used in comparison code which makes sure certain features are used in appropriate versions
ClassMethod InstanceVersion() As %Numeric [ CodeMode = expression ]
{
Expand Down

0 comments on commit e8e7209

Please sign in to comment.