Skip to content

Commit c0ce171

Browse files
authored
Merge branch 'main' into label-merge-conflicts
2 parents 13ef2aa + abb8042 commit c0ce171

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [2.15.0] - Unreleased
99

10+
### Added
11+
- Import All has been added to public-facing API (#891)
12+
1013
## Fixed
1114
- Web UI workspace view labels changes as Unmerged if there are merge conflicts (#890)
1215

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()

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)