diff options
Diffstat (limited to 'buildstream/source.py')
-rw-r--r-- | buildstream/source.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/buildstream/source.py b/buildstream/source.py index 20d54ed47..c766322a8 100644 --- a/buildstream/source.py +++ b/buildstream/source.py @@ -417,6 +417,10 @@ class Source(Plugin): if current_ref != new_ref: self.info("Found new revision: {}".format(new_ref)) + if self._has_workspace(): + detail = "This source has an open workspace.\n" \ + + "To start using the new reference, please close the existing workspace." + self.warn("Updated reference will be ingnored as source has open workspace", detail=detail) return new_ref |