File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
test/UnitTest/SourceControl/Git Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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.
5360ClassMethod Lock ()
Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments