sync: Support upgrading manifest formats
If the manifest format changes during init or sync we need to do a full reparse of the manifest, and possibly allow the new object to reconfigure the local workspace to match its expectations. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
5f947bba69
commit
87bda12e85
3 changed files with 22 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
|||
|
||||
import os
|
||||
|
||||
from error import ManifestParseError
|
||||
from editor import Editor
|
||||
from git_config import GitConfig
|
||||
from project import MetaProject
|
||||
|
@ -45,3 +46,6 @@ class Manifest(object):
|
|||
|
||||
def SetMRefs(self, project):
|
||||
pass
|
||||
|
||||
def Upgrade_Local(self, old):
|
||||
raise ManifestParseError, 'unsupported upgrade path'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue