From d39bbbf1a02ee5476694f48e3536be77e343fa31 Mon Sep 17 00:00:00 2001 From: Sam Gamgee Date: Wed, 19 Jul 2017 14:05:44 +0300 Subject: [PATCH] [UPD] Version checking is added. UDL works since version 2015.2. --- %SourceControl.Git.inc.xml | 7 ++++++ %SourceControl/Git.cls.xml | 2 ++ %SourceControl/Git/UDL.cls.xml | 42 +++++++++++++++++++++++++++++--- %SourceControl/Git/Utils.cls.xml | 5 ++-- sc-list.txt | 1 + 5 files changed, 52 insertions(+), 5 deletions(-) create mode 100644 %SourceControl.Git.inc.xml diff --git a/%SourceControl.Git.inc.xml b/%SourceControl.Git.inc.xml new file mode 100644 index 0000000..4f515ee --- /dev/null +++ b/%SourceControl.Git.inc.xml @@ -0,0 +1,7 @@ + + += 2015.2) +]]> + diff --git a/%SourceControl/Git.cls.xml b/%SourceControl/Git.cls.xml index 0541a49..f2af417 100644 --- a/%SourceControl/Git.cls.xml +++ b/%SourceControl/Git.cls.xml @@ -2,6 +2,7 @@ %SourceControl.Git +%SourceControl.Git %Studio.Extension.Base 62655,58027.787011 @@ -93,6 +94,7 @@ set DisplayName = "Open Repo Folder" }elseif name = "%Sources" { set DisplayName = "Sources: "_$case(##class(Utils).GetTypeOfSources(), 1:"XML", 0:"UDL", :"") + if '$$$WorkInThisVersion set Enabled = 0 } elseif ##class(Utils).IsMenuGitCommand(name) && ##class(Utils).GitBinExists() { set DisplayName = $case(name,"%StashSave":"Stash save", diff --git a/%SourceControl/Git/UDL.cls.xml b/%SourceControl/Git/UDL.cls.xml index 0ebfbfb..c4401dd 100644 --- a/%SourceControl/Git/UDL.cls.xml +++ b/%SourceControl/Git/UDL.cls.xml @@ -1,15 +1,22 @@ -%occStatus,%occErrors +%occStatus,%occErrors,%SourceControl.Git 64476,66997.781615 + +1 + + + 1 InternalName,filename %Status @@ -36,6 +45,7 @@ %Status @@ -62,6 +73,8 @@ %Status @@ -95,6 +109,8 @@ %Status @@ -114,6 +131,7 @@ %Status @@ -134,6 +153,8 @@ %Status @@ -161,6 +183,7 @@ InternalName,filename @@ -181,6 +205,8 @@ InternalName,filename @@ -210,6 +237,7 @@ InternalName,filename @@ -240,6 +269,7 @@ InternalName,filename @@ -259,7 +290,9 @@ %Status @@ -285,6 +319,7 @@ %Status diff --git a/%SourceControl/Git/Utils.cls.xml b/%SourceControl/Git/Utils.cls.xml index 65ad195..10c5fc3 100644 --- a/%SourceControl/Git/Utils.cls.xml +++ b/%SourceControl/Git/Utils.cls.xml @@ -2,7 +2,7 @@ 1 -%occStatus,%occErrors +%occStatus,%occErrors,%SourceControl.Git 1 62657,53384.637236 @@ -225,7 +225,8 @@ Type: menuItemName:%String %Boolean /gitprojectsettings.csp cache-tort-git.prj