Skip to content

Commit ec50ab8

Browse files
Fix lut files that do not exist as never being considered outdated for the purpose of importing
The timestamp returned by %RoutineMgr.TS() is always the current time for a lut file that does not exist or has yet to be imported, resulting in such lut files as never being considered as outdated when performing an import. Check that lut files exist before using the returned timestamp, allowing them to be imported.
1 parent 573c292 commit ec50ab8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,8 @@ ClassMethod RoutineTSH(InternalName As %String) As %String
13081308

13091309
if tsh = "" {
13101310
#dim ts as %String = ##class(%RoutineMgr).TS(InternalName)
1311-
if ts '= "" {
1311+
// lut files that do not exist always return the current time as a timestamp, check that they exist before using it
1312+
if (ts '= "") && ((type '= "lut") || ((type = "lut") && ##class(%RoutineMgr).Exists(InternalName))) {
13121313
// prj files have milliseconds in timestamp, so we crop them
13131314
set tsh = $piece($zdatetimeh(ts, 3),".",1)
13141315
} else {

0 commit comments

Comments
 (0)