@@ -2157,9 +2157,7 @@ ClassMethod Name(InternalName As %String, ByRef MappingExists As %Boolean) As %S
2157
2157
quit $translate (found _$translate (InternalName ," %" ," _" )," \" ," /" )
2158
2158
} elseif (..Type (InternalName ) = " ptd" ) {
2159
2159
do ##class (SourceControl.Git.Production ).ParseInternalName (InternalName ,'default ,.filename )
2160
- set externalName = $translate (found _filename , " \" ," /" )
2161
- do ##class (SourceControl.Git.Util.ProductionItemCache ).Store (..TempFolder ()_externalName , InternalName )
2162
- return externalName
2160
+ return $translate (found _filename , " \" ," /" )
2163
2161
} elseif ext =" CLS" ||(ext =" PRJ" )||usertype {
2164
2162
set nam =$replace (nam ," %" , ..PercentClassReplace ())
2165
2163
if default {
@@ -2225,6 +2223,10 @@ ClassMethod NameToInternalName(Name, IgnorePercent = 1, IgnoreNonexistent = 1, V
2225
2223
}
2226
2224
if (##class (%File ).Exists (Name )) {
2227
2225
set InternalName = ##class (SourceControl.Git.File ).ExternalNameToInternalName (Name )
2226
+ if (InternalName '= " " ) && (context .IsInGitEnabledPackage ) {
2227
+ // Don't need mappings!
2228
+ return ..NormalizeInternalName (InternalName )
2229
+ }
2228
2230
} else {
2229
2231
// check for file in uncommitted queue
2230
2232
&sql (SELECT internalName into :InternalName FROM SourceControl_Git .Change where ItemFile = :Name)
@@ -2234,11 +2236,6 @@ ClassMethod NameToInternalName(Name, IgnorePercent = 1, IgnoreNonexistent = 1, V
2234
2236
set Deleted = 1
2235
2237
}
2236
2238
}
2237
- // check for file in production item cache
2238
- if InternalName = " " {
2239
- set InternalName = ##class (SourceControl.Git.Util.ProductionItemCache ).Lookup (Name )
2240
- }
2241
- // use mappings
2242
2239
if (InternalName =" " ) {
2243
2240
set name =$extract (Name ,$length ($$$SourceRoot)+1 ,*)
2244
2241
set name =$replace (name ," \" ," /" ) // standardize slash direction
@@ -2371,11 +2368,7 @@ ClassMethod NameToInternalName(Name, IgnorePercent = 1, IgnoreNonexistent = 1, V
2371
2368
}
2372
2369
if ((IgnorePercent )&&($extract (InternalName )=" %" )) { set InternalName = " " } // don't return a result for % items if instructed to ignore them
2373
2370
if ((IgnoreNonexistent )&&('##class (%RoutineMgr ).Exists (InternalName ))&&('Deleted )) { set InternalName = " " } // only return item names which exist in the DB
2374
- set normalizedInternalName = ..NormalizeInternalName (InternalName )
2375
- if ..Type (normalizedInternalName ) = " ptd" {
2376
- do ##class (SourceControl.Git.Util.ProductionItemCache ).Store (Name , normalizedInternalName )
2377
- }
2378
- quit normalizedInternalName
2371
+ quit ..NormalizeInternalName (InternalName )
2379
2372
}
2380
2373
2381
2374
ClassMethod OutputConfigureMessage ()
0 commit comments