diff --git a/CHANGELOG.md b/CHANGELOG.md
index 50ca9942..0f957071 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added change context option to pull page (#468)
- Added favorite namespaces setting for a user (#468, #510)
- Added environment awareness in configuration, and showing of environment name in UI (#124)
+- Warning on sync page if other users have unstaged changes (#493)
- Added "Export System Default Settings" menu item (#544)
### Fixed
diff --git a/csp/sync.csp b/csp/sync.csp
index 75097df4..9acb7cab 100644
--- a/csp/sync.csp
+++ b/csp/sync.csp
@@ -117,12 +117,18 @@
Sync Repository
-
- if ##class(SourceControl.Git.Utils).InDefaultBranchBasicMode() {
+
+ set defaultBasic = ##class(SourceControl.Git.Utils).InDefaultBranchBasicMode()
+ if defaultBasic || ##class(SourceControl.Git.Change).GetOtherDeveloperChanges().%Size() > 0 {
+ if defaultBasic {
+ set message = "Please change branches to make sure your changes are committed."
+ } else {
+ set message = "Other users have work in progress in this namespace. They must commit their work before you can sync, or you can commit their work after review in the Git WebUI before trying to sync again."
+ }
&html<
×
- Warning! Please change branches to make sure your changes are committed.
+ Warning! #(message)#
>
}