summaryrefslogtreecommitdiffstats
path: root/manifest.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-07-03 16:37:30 -0700
committerShawn O. Pearce <sop@google.com>2009-07-03 20:50:52 -0700
commit87bda12e85ffb98778d7ac881edb0210b74c0491 (patch)
treeccdbd92a16ccb4fe9409ee5b864c0e02412e942a /manifest.py
parent5f947bba69de81f58f1adef10225c04727fa0ed5 (diff)
downloadgit-repo-87bda12e85ffb98778d7ac881edb0210b74c0491.tar.gz
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>
Diffstat (limited to 'manifest.py')
-rw-r--r--manifest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/manifest.py b/manifest.py
index a2fc9601..f737e866 100644
--- a/manifest.py
+++ b/manifest.py
@@ -15,6 +15,7 @@
15 15
16import os 16import os
17 17
18from error import ManifestParseError
18from editor import Editor 19from editor import Editor
19from git_config import GitConfig 20from git_config import GitConfig
20from project import MetaProject 21from project import MetaProject
@@ -45,3 +46,6 @@ class Manifest(object):
45 46
46 def SetMRefs(self, project): 47 def SetMRefs(self, project):
47 pass 48 pass
49
50 def Upgrade_Local(self, old):
51 raise ManifestParseError, 'unsupported upgrade path'