Skip to content

Commit edadcba

Browse files
committed
enh: public API includes Import All
1 parent 5602495 commit edadcba

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.15.0] - Unreleased
9+
10+
### Added
11+
- Import All has been added to public-facing API (#891)
12+
813
## [2.14.0] - 2025-11-07
914

1015
### Added

cls/SourceControl/Git/API.cls

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ ClassMethod Pull(pTerminateOnError As %Boolean = 0)
4848
quit st
4949
}
5050

51+
/// Imports all items from the Git repository into IRIS.
52+
/// - pForce: if true, will import an item even if the last updated timestamp in IRIS is later than that of the file on disk.
53+
ClassMethod ImportAll(pForce As %Boolean = 0) as %Status
54+
{
55+
return ##class(SourceControl.Git.Utils).ImportAll(pForce)
56+
}
57+
5158
/// Locks the environment to prevent changes to code other than through git pull.
5259
/// Returns 1 if the environment was already locked, 0 if it was previously unlocked.
5360
ClassMethod Lock()

module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Document name="git-source-control.ZPM">
44
<Module>
55
<Name>git-source-control</Name>
6-
<Version>2.14.0</Version>
6+
<Version>2.15.0</Version>
77
<Description>Server-side source control extension for use of Git on InterSystems platforms</Description>
88
<Keywords>git source control studio vscode</Keywords>
99
<Packaging>module</Packaging>

test/UnitTest/SourceControl/Git/ImportAll.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Method TestImportAll()
5858
do ..WriteFile(##class(SourceControl.Git.Settings).%New().namespaceTemp_"csp/git/unittest/xsl/test.xsl", "<?xml version=""1.0"" encoding=""UTF-8""?> <xsl:stylesheet version=""1.0""></xsl:stylesheet>")
5959
$$$ThrowOnError(##class(%Routine).Delete("test.mac"))
6060
do ##class(%RoutineMgr).Delete("/csp/git/unittest/xsl/test.xsl")
61-
$$$ThrowOnError(##class(SourceControl.Git.Utils).ImportAll(1))
61+
$$$ThrowOnError(##class(SourceControl.Git.API).ImportAll(1))
6262
do $$$AssertTrue(##class(%Routine).Exists("test.mac"))
6363
do $$$AssertTrue(##class(%RoutineMgr).Exists("/csp/git/unittest/xsl/test.xsl"))
6464
do $$$AssertFilesSame(##class(SourceControl.Git.Settings).%New().namespaceTemp_"csp/git/unittest/xsl/test.xsl", ..WebAppPath_"/test.xsl")

0 commit comments

Comments
 (0)