Index: svn/StudioHook.cls.xml =================================================================== diff -u -r1682 -r1685 --- svn/StudioHook.cls.xml (.../StudioHook.cls.xml) (revision 1682) +++ svn/StudioHook.cls.xml (.../StudioHook.cls.xml) (revision 1685) @@ -616,7 +616,7 @@ } elseif tMenu="sync" { // Do nothing } elseif tMenu="branch" { - set tCmd=##class(svn.Command).RowIdOpen(..Cmd) + set tCmd=##class(svn.Command).%New() if Answer=1 { if tCmd'=$$$NULLOREF { do tCmd.Execute() @@ -711,17 +711,11 @@ set ^SYS("SourceControl",$$$PRODUCT,"Branch")="trunk" } else { // ALL OTHER COMMANDS - set tCmd=##class(svn.Command).RowIdOpen(..Cmd) - if tCmd=$$$NULLOREF { - write !," *** Studio: can't open Command record with GUID "_..Cmd_ " ! ***" - } elseif tCmd.SubCommand="" { - // do nothing - this deals with Settings form. - } else { - if Answer=1 { - if tCmd.SubCommand="add" do ..svnHelper.ExportCode(InternalName) - do tCmd.Execute() - Set ..IsDisconnected =..svnHelper.PostProcessing(tCmd) - } + if Answer=1 { + set tCmd=##class(svn.Command).%New() + if tCmd.SubCommand="add" do ..svnHelper.ExportCode(InternalName) + do tCmd.Execute() + Set ..IsDisconnected =..svnHelper.PostProcessing(tCmd) } } } catch (ex) {