intersystems-community / cache-tort-git Goto Github PK
View Code? Open in Web Editor NEWAccess to Tortoise Git interface from Caché Studio
Home Page: https://github.com/intersystems-ru/cache-tort-git/wiki
License: MIT License
Access to Tortoise Git interface from Caché Studio
Home Page: https://github.com/intersystems-ru/cache-tort-git/wiki
License: MIT License
My ^Git
global
MDX2JSON>zw ^Git
^Git("TSH","MDX2JSON.EmptyPortlet.cls")="63943,46991"
^Git("TSH","MDX2JSON.MDX2JSON.inc")="63943,47000"
^Git("TSH","MDX2JSON.Tests.cls")="63943,77136"
^Git("items","/MDX2JSON/MDX2JSON.inc")=""
^Git("items","MDX2JSON.AbstractREST.cls")=""
^Git("items","MDX2JSON.Dashboard.cls")=""
^Git("items","MDX2JSON.DashboardFilters.cls")=""
^Git("items","MDX2JSON.EmptyPortlet.cls")=""
^Git("items","MDX2JSON.Installer.cls")=""
^Git("items","MDX2JSON.MDX2JSON.inc")=""
^Git("items","MDX2JSON.REST.cls")=""
^Git("items","MDX2JSON.ResultSet.cls")=""
^Git("items","MDX2JSON.Task.cls")=""
^Git("items","MDX2JSON.Tests.cls")=""
^Git("items","MDX2JSON.Users.cls")=""
^Git("items","MDX2JSON.Utils.cls")=""
^Git("items","MDX2JSON.pkg")=""
^Git("settings","groupByFolder")=1
^Git("settings","hook")=$lb("MDX2JSON.Tests","OnCommit")
When I'm pressing ImportAll, I get the following output
MDX2JSON.REST.CLS is newer than on-disk version, skipping import
MDX2JSON.Dashboard.CLS is newer than on-disk version, skipping import
MDX2JSON.DashboardRS.CLS is newer than on-disk version, skipping import
MDX2JSON.Task.CLS is newer than on-disk version, skipping import
MDX2JSON.EmptyPortlet.CLS is newer than on-disk version, skipping import
MDX2JSON.ResultSet.CLS is newer than on-disk version, skipping import
MDX2JSON.AbstractREST.CLS is newer than on-disk version, skipping import
MDX2JSON.Utils.CLS is newer than on-disk version, skipping import
MDX2JSON.Users.CLS is newer than on-disk version, skipping import
MDX2JSON.Tests.CLS is newer than on-disk version, skipping import
Expected:
In "Installation in Caché" section 1 ...CACHELIB is a database not a namespace.
Also ability to read sc-list in old and new format
Create new persistent class
Add it to source control
Save it (no compile). See that file is exported
Compile it. See that file is exported.
Close and open file back.
Studio status window shows that corresponding file is imported back in Studio. Although it should not
Here's an idea: hooks for projects. I got 3 implementations:
^Git("hook") = class, method
and execute do $classmame(class, method)
or do $classmame(class, method, itemname)
Commit
buttonOnExport
exist? If yes, do something.Ideas?
I require it for MDX2JSON (need to execute 1 action before commit), but I want my changes integrated into master branch so let's work out a solution for everybody.
Возможность создавать и переключаться между ветками в Studio
For easier work with project.
There is release https://github.com/intersystems-ru/cache-tort-git/releases functionality for that.
I often receive this error:
Class delete mvk.production.ContractPreparationProcess
Error #5351: Class 'package.classname' Does not exist.
Error: could not delete 'package.classname.cls'
This error should not be displayed, but rather ^Git
global should be automatically actualized by removing offending class entry.
What should we do, if there is no sc-list in repo? Just Load All? Or write some more meaningfull error?
Use %Compiler.UDL.TextServices for class import/export
Представим, что в папке веб-приложения области есть js и html файлы и вообще любые файлы, которые являются частью приложения, но изменяются не в студии, а во внешнем редакторе.
При обновлении такого файла извне, гит в студии не чувствует изменений и нет возможности включить этот файл в коммит и/или сделать export all в репозиторий.
Приходится выключать всю папку csp из сурс-контрола и потом снова включать.
После этого изменения можно закоммитить и экспортнуть в репозиторий.
Это неудобно - можно это исправить?
Hello,
What is procedure for updating plugin to a newer release?
My installation already have plugin installed and setup for my namespace.
Currently using: "cache-tort-git" LastModified="2015-02-24 12:30:27.321554"
Want to update to "cache-tort-git" LastModified="2016-07-31 23:57:25.117897"
Thanks
Hello, when select many routines at a same time and click on Add to SourceControl we have this error:
class '%Studio.SourceControl.Interface', method 'UserAction': SUBSCRIPT 201 zTS+22^%Library.RoutineMgr.1 ^oddDEF("")
class '%Studio.SourceControl.Interface', method 'GetStatus': SUBSCRIPT 201 zTS+22^%Library.RoutineMgr.1 ^oddDEF("")
Thanks!
Hello,
When do Force Exprort All from Git menu in Cahce Studio, I am getting error, "ERROR #6304: Unable to export item 'myclass.something' because XML export does not support items of this type. Will skip this item."
However, the same class, exports fine from Studio.
Workspace > Project tab > select myclass.something > right-click Export.
What is this error and how can I resolve it or how can I debug to see what line inside that class is causing Force Export All issue?
Thx!
We have a central Caché-server to wich the developers connect with Caché-studio.
I can configure Cache-tort-git in the local Caché Studio's but the exports are saved on the server instead of on the workstations.
Is it possible that cache-tort-git exports directly in the right folder on the workstations ?
Use case.
Create %Persistent class. Save it.
File is exported, because hook is on Save.
Recompile class. Now it has storage.
But file with storage is not exported, because there is no hook on recompile
Now users need to remove repo-name from folder path in 'clone repo' dialog
at least support file export/import
I installed and configured the cache-tort-git.
I followed the steps :
Create csp app 'demoapp/'
Add it to source control
Notice that files from demoapp are not exported to filesystem
reported by @iColdheart and @dmitry-zasypkin
reported by @tiago-sistema
This was tested Implementation in Caché 2013.1.1? I have problems when project import in %SYS, and error triggered: %SourceControl.Git.Utils.1.INT(408) ERROR #1054: Invalid expression
Until recently I had non-importable items in the repository, so "Import All" if failed on loading, but ddin't bring anything undesired.
But right now I want to put a few actual Studio projects as examples of containers, and I do not want to get them imported by "Import All" (but rather they will be used/loaded/unloaded as part of unit-testing scenarios). Like here https://github.com/intersystems-ru/CPM/tree/package_xml/t/simple/simple.xml
Could you please provide exclude patterns functionality?
Создаётся впечатление что новый git отслеживает изменения раздела CSP снаружи и если видит изменения то использует свою версию, а не изменившуюся. Более того он сохраняет её а не новую. Восстановил предыдущую версию - бага не стало
The code works fine. The one issue I have is the name of the objects. According to Intersystems documentation
Custom Items in CACHESYS
You can create items in the CACHESYS database. When you install a Caché upgrade, this database is upgraded. During this upgrade, some items are deleted unless they follow the naming conventions for custom items.
To add code or data to this database so that your items are not overwritten, do one of the following:
Go to the %SYS namespace and create the item. For this namespace, the default routine database and default global database are both CACHESYS. Use the following naming conventions to prevent your items from being affected by the upgrade installation:
Classes: start the package with Z or z
Routines: start the name with Z, z, %Z, or %z
Globals: start the name with ^Z, ^z, ^%Z, or ^%z
I had previously installed your code and it was working fine. I upgraded Cache/Healthshare and as part of the upgrade all of %SourceControl was removed.
Could this code either
so that I do not have to re-apply the code after an upgrade?
Trying to import xml's and get the error:
"ERROR #6301 Line: 3 Offset: 34 ERROR #5883: Item '%SourceControl.Git' is mapped from a database that you do not have write permission on. Will skip this item."
I'm running on Windows 10 server with full privileges in Cache and in Windows. Export and Import of other cls files (not part of this pull) work fine. Any suggestions?
For CSP applications I do not see the need for versioning export XML files, this because within the application often have files from other formats that would provide greater control if they were versioned for its extension origin.
reported by @iColdheart
Could you please put explicit license your code is supposed to be used under?
Currently cache-tort-git puts files from all different csp apps in one folder csp
.
That is bad, because these apps might contain files with the same name
Currently the Git plugin only allows us to submit 10 routines to the repository at a time using the UI, is there a workaround that can be used so that more routines can be submitted at once? If not, this should be added, the capability to submit a folder of routines instead of selecting a small group.
Открывать папку эксплорера с репозиторием по нажатию этого пункта меню, часто требуется, а ниоткуда не видно, где искать эту папку.
Create routine Test.test.mac
Add it to source control via Workspace -> Namespace (not Workspace -> Project)
See error that no such web application
This makes it really hard to view diffs on the code.
Is there any way to make the actual class files be saved to git, instead of the xml representations?
Thanks,
Jonathan.
After I add a folder with CSP pages to version control I can not create any more .csp file in it.
After creating the new file I try to save him and the error message as the image below.
My workstation is in pt-BR, so the translation of the message is: "ERROR #5012: The file 'c:\temp\TESTE_VERSIONAMENTO\csp\teste\Untitled4.csp.xml' not exists"
Consider the following project:
project.class.cls
project.include.inc
Cache studio thinks that they both are in a directory project.
But in cache-tort-git if we add them to source control, they would be exported to disk as:
\root\project\class.cls.xml
\root\project.include.inc.xml
I propose cace-tort-git export them as:
\root\project\class.cls.xml
\root\project\include.inc.xml
Hello,
I am having this issue with Export All.
My workflow is as follow:
I am using Studio 2015.1
Does anyone have a workaround to force Export All after doing a Import Local?
Thanks!
I have a versioned CSP folder on my CSP application , when I create a new local environment where that folder does not exist yet in the CSP application, the version control it does not create or import any of your files or subfolders.
Would improve readability
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.