Skip to content

Commit 0f10859

Browse files
authored
Merge pull request #347 from intersystems/ipm-multideveloper-setting
Issue #317 IPM Multi Developer Setting Issue Resolved
2 parents 78a8871 + 2d08c9a commit 0f10859

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Pre-release support for IPM v0.9.0+
1313
- Items mapped from database other than namespace's default routine database are now ignored by default when exporting or adding files
1414
- New setting to configure whether mapped items should be should be treated as read-only
15-
- Added a new "Branch" parameter to `##class(SourceControl.Git.PullEventHandler)` (#35
15+
- Now skips files belonging to other git enabled packages in `##class(SourceControl.Git.Change).RefreshUncommitted()` (#347)
16+
- Added a new "Branch" parameter to `##class(SourceControl.Git.PullEventHandler)` (#351)
1617
- Command-line utility to do a baseline export of items in a namespace
1718

19+
1820
## [2.3.1] - 2024-04-30
1921

2022
### Fixed

cls/SourceControl/Git/Change.cls

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,13 @@ ClassMethod RefreshUncommitted(Display = 0, IncludeRevert = 0, Output gitFiles,
131131
set examine=$select(action="add":1,action="edit":1,action="delete":1, IncludeRevert&&(action="revert"):1,1:0)
132132
if 'examine set filename=$order(tFileList(filename),1,action) continue
133133

134+
set packageRoot = ##class(SourceControl.Git.Utils).TempFolder()
134135
set InternalName = ##class(SourceControl.Git.Utils).NameToInternalName(filename,0,0)
135136

137+
// skip files belonging to other git enabled packages
138+
if ($EXTRACT(filename, 1, $LENGTH(packageRoot)) '= packageRoot) continue
139+
140+
136141
if (('##class(%File).Exists(filename)) || (InternalName = "") || ((InternalName '= "") && ('$data(gitFiles(InternalName), found)) &&
137142
(($data($$$TrackedItems(InternalName))) || ##class(SourceControl.Git.Utils).NormalizeExtension($data($$$TrackedItems(InternalName)))))) {
138143
set sc=..RemoveUncommitted(filename,Display,0,0)

0 commit comments

Comments
 (0)