File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed
test/UnitTest/SourceControl/Git Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and 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
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 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 >
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