diff options
author | Shawn O. Pearce <sop@google.com> | 2009-05-18 13:19:57 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2009-05-29 09:31:28 -0700 |
commit | c8a300f6397dad7db00c3654ff6e50e9519ed7c9 (patch) | |
tree | 4bd29d3d580e53965b66ed2d10e13507584fe577 /main.py | |
parent | 1b34c9118ed86a15b0bc1094804c095dd7be33cb (diff) | |
download | git-repo-c8a300f6397dad7db00c3654ff6e50e9519ed7c9.tar.gz |
Refactor Manifest to be XmlManifest
We'll soon be supporting two different manifest formats, but we
can't immediately remove support for the current XML one that is
in wide spread use within Android.
Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'main.py')
-rwxr-xr-x | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -36,7 +36,7 @@ from editor import Editor | |||
36 | from error import ManifestInvalidRevisionError | 36 | from error import ManifestInvalidRevisionError |
37 | from error import NoSuchProjectError | 37 | from error import NoSuchProjectError |
38 | from error import RepoChangedException | 38 | from error import RepoChangedException |
39 | from manifest import Manifest | 39 | from manifest_xml import XmlManifest |
40 | from pager import RunPager | 40 | from pager import RunPager |
41 | 41 | ||
42 | from subcmds import all as all_commands | 42 | from subcmds import all as all_commands |
@@ -97,7 +97,7 @@ class _Repo(object): | |||
97 | sys.exit(1) | 97 | sys.exit(1) |
98 | 98 | ||
99 | cmd.repodir = self.repodir | 99 | cmd.repodir = self.repodir |
100 | cmd.manifest = Manifest(cmd.repodir) | 100 | cmd.manifest = XmlManifest(cmd.repodir) |
101 | Editor.globalConfig = cmd.manifest.globalConfig | 101 | Editor.globalConfig = cmd.manifest.globalConfig |
102 | 102 | ||
103 | if not isinstance(cmd, MirrorSafeCommand) and cmd.manifest.IsMirror: | 103 | if not isinstance(cmd, MirrorSafeCommand) and cmd.manifest.IsMirror: |