Support <remove-project name="X"> in manifest to remove/replace X
The manifest files now permit removing a project so the user can either keep it out of their client, or replace it with a different project using an entirely different configuration. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
2896a79120
commit
03eaf07ec6
2 changed files with 26 additions and 0 deletions
10
manifest.py
10
manifest.py
|
@ -137,6 +137,16 @@ class Manifest(object):
|
|||
"no <manifest> in %s" % \
|
||||
self.manifestFile
|
||||
|
||||
for node in config.childNodes:
|
||||
if node.nodeName == 'remove-project':
|
||||
name = self._reqatt(node, 'name')
|
||||
try:
|
||||
del self._projects[name]
|
||||
except KeyError:
|
||||
raise ManifestParseError, \
|
||||
'project %s not found' % \
|
||||
(name)
|
||||
|
||||
for node in config.childNodes:
|
||||
if node.nodeName == 'remote':
|
||||
remote = self._ParseRemote(node)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue