summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/project.py b/project.py
index 4f0345f8..d336f990 100644
--- a/project.py
+++ b/project.py
@@ -2167,6 +2167,22 @@ class MetaProject(Project):
2167 self.revisionExpr = base 2167 self.revisionExpr = base
2168 self.revisionId = None 2168 self.revisionId = None
2169 2169
2170 def MetaBranchSwitch(self, target):
2171 """ Prepare MetaProject for manifest branch switch
2172 """
2173
2174 # detach and delete manifest branch, allowing a new
2175 # branch to take over
2176 syncbuf = SyncBuffer(self.config, detach_head = True)
2177 self.Sync_LocalHalf(syncbuf)
2178 syncbuf.Finish()
2179
2180 return GitCommand(self,
2181 ['branch', '-D', 'default'],
2182 capture_stdout = True,
2183 capture_stderr = True).Wait() == 0
2184
2185
2170 @property 2186 @property
2171 def LastFetch(self): 2187 def LastFetch(self):
2172 try: 2188 try: