File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
- Added 'git push --force' in expert mode (#527 )
12
12
- Add remote repository to settings page (#448 )
13
13
- Added environment awareness in configuration, and showing of environment name in UI (#124 )
14
+ - Warning on sync page if other users have unstaged changes (#493 )
14
15
15
16
### Fixed
16
17
- Fixed display of other users' username in workspace view on Unix (#530 )
Original file line number Diff line number Diff line change 110
110
<div class="row">
111
111
<div class="offset-sm-2 col-sm-8">
112
112
<server>
113
- if ##class(SourceControl.Git.Utils).InDefaultBranchBasicMode() {
113
+ if ##class(SourceControl.Git.Utils).InDefaultBranchBasicMode() || ##class(SourceControl.Git.Change).GetOtherDeveloperChanges().%Size() > 0 {
114
+ set message = $case(##class(SourceControl.Git.Utils).InDefaultBranchBasicMode(),
115
+ 1:"Please change branches to make sure your changes are committed.",
116
+ :"Other users have unstaged changes in this namespace, so merging to remote will fail")
114
117
&html<
115
118
<div class = "alert">
116
119
<span class="closebtn" onclick="this.parentElement.style.display='none';">×</span>
117
- <strong>Warning!</strong> Please change branches to make sure your changes are committed.
120
+ <strong>Warning!</strong> #(message)#
118
121
</div>
119
122
>
120
123
}
You can’t perform that action at this time.
0 commit comments