-
Notifications
You must be signed in to change notification settings - Fork 8
No folders fix #138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No folders fix #138
Conversation
…w format of storing mappings.
cls/SourceControl/Git/Utils.cls
Outdated
@@ -1556,7 +1550,7 @@ ClassMethod NameToInternalName(Name, IgnorePercent = 1, IgnoreNonexistent = 1) A | |||
} | |||
} | |||
set fileExt=$zconvert($piece(nam,".",$length(nam,".")),"L") | |||
if (InternalName="")&&('$data(ext)=0)&&('$listfind($listbuild("xml","rtn"),fileExt)) { | |||
if (InternalName="")&&($data(ext)=0)&&('$listfind($listbuild("xml","rtn"),fileExt)) { | |||
//no match found yet, and this is in a subdir for a specific document type (ext), however it is not in a typical export format | |||
//so treat it as a non-mapped file | |||
kill ext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If $data(ext)=0 then killing it is a no-op.
|
||
Method %OnClose() As %Status | ||
{ | ||
merge @##class(SourceControl.Git.Utils).MappingsNode() = ..Mappings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should kill the mappings node as well (first). As it stands it'll leave the nspace/hl7/ in place.
// % class that exists but we ignore % classes | ||
do $$$AssertEquals(##class(Utils).NameToInternalName("cls\%Studio\Extension\Base.cls"),"") | ||
// % class that exists and we don't ignore % classes | ||
do $$$AssertEquals(##class(Utils).NameToInternalName("cls\%Studio\Extension\Base.cls", 0),"%Studio.Extension.Base.CLS") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In all of these cases, we shouldn't have % in the folder name. (I believe this is illegal in Windows which is why we generally don't do it.) But it should still work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. I forgot about that. I'll change the tests.
@isc-svelury I think this is still in progress / pending changes - can you confirm? |
It is in progress. The |
NoFolders
toggle is off, and store mappings accordingly.This PR closes #130 and #145