diff options
author | Shawn O. Pearce <sop@google.com> | 2009-07-03 16:37:30 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2009-07-03 20:50:52 -0700 |
commit | 87bda12e85ffb98778d7ac881edb0210b74c0491 (patch) | |
tree | ccdbd92a16ccb4fe9409ee5b864c0e02412e942a /manifest.py | |
parent | 5f947bba69de81f58f1adef10225c04727fa0ed5 (diff) | |
download | git-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.py | 4 |
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 | ||
16 | import os | 16 | import os |
17 | 17 | ||
18 | from error import ManifestParseError | ||
18 | from editor import Editor | 19 | from editor import Editor |
19 | from git_config import GitConfig | 20 | from git_config import GitConfig |
20 | from project import MetaProject | 21 | from 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' | ||