Skip to content

Commit b69d11b

Browse files
Output a warning when no possible classes are found after attempting to expand truncated class names from git pull
1 parent 385cf6a commit b69d11b

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,13 +1859,18 @@ ClassMethod SyncIrisWithRepoThroughCommand(ByRef outStream) As %Status
18591859
// In other cases, we'll just end up logging the invalid externalName.
18601860
if $Piece(externalName,".",*) = "cls" {
18611861
set possibleClasses = ..ExpandClasses(externalName)
1862-
set pointer = 0
1863-
while $ListNext(possibleClasses,pointer,class) {
1864-
set modification = ##class(SourceControl.Git.Modification).%New()
1865-
set modification.changeType = "C"
1866-
set modification.internalName = class_".CLS"
1867-
set modification.externalName = ..ExternalName(modification.internalName)
1868-
set files($i(files)) = modification
1862+
if $ListLength(possibleClasses) '= 0 {
1863+
set pointer = 0
1864+
while $ListNext(possibleClasses,pointer,class) {
1865+
set modification = ##class(SourceControl.Git.Modification).%New()
1866+
set modification.changeType = "C"
1867+
set modification.internalName = class_".CLS"
1868+
set modification.externalName = ..ExternalName(modification.internalName)
1869+
set files($i(files)) = modification
1870+
}
1871+
} else {
1872+
write !,"WARNING: unable to translate external name ",externalName
1873+
continue
18691874
}
18701875
} else {
18711876
write !,"WARNING: unable to translate external name ",externalName

0 commit comments

Comments
 (0)