[gnome-builder] buildmanager: invalidate pipeline when branch changes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] buildmanager: invalidate pipeline when branch changes
- Date: Mon, 19 Mar 2018 02:17:26 +0000 (UTC)
commit 479dbd517d9bc9f626ff44ad53fc42082933132e
Author: Christian Hergert <chergert redhat com>
Date: Sun Mar 18 19:16:13 2018 -0700
buildmanager: invalidate pipeline when branch changes
When the IdeVcs notifies us that the branch has changed, we
should invalidate the build pipeline so that we use the new
build directory.
Fixes #406
src/libide/buildsystem/ide-build-manager.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/libide/buildsystem/ide-build-manager.c b/src/libide/buildsystem/ide-build-manager.c
index 98f0fc427..5386165aa 100644
--- a/src/libide/buildsystem/ide-build-manager.c
+++ b/src/libide/buildsystem/ide-build-manager.c
@@ -546,6 +546,7 @@ initable_init (GInitable *initable,
IdeConfigurationManager *config_manager;
IdeDeviceManager *device_manager;
IdeContext *context;
+ IdeVcs *vcs;
IDE_ENTRY;
@@ -555,6 +556,7 @@ initable_init (GInitable *initable,
context = ide_object_get_context (IDE_OBJECT (self));
config_manager = ide_context_get_configuration_manager (context);
device_manager = ide_context_get_device_manager (context);
+ vcs = ide_context_get_vcs (context);
g_signal_connect_object (config_manager,
"invalidate",
@@ -568,6 +570,12 @@ initable_init (GInitable *initable,
self,
G_CONNECT_SWAPPED);
+ g_signal_connect_object (vcs,
+ "changed",
+ G_CALLBACK (ide_build_manager_invalidate_pipeline),
+ self,
+ G_CONNECT_SWAPPED);
+
ide_build_manager_invalidate_pipeline (self);
IDE_RETURN (TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]