diff options
| author | Shawn O. Pearce <sop@google.com> | 2009-06-03 16:01:11 -0700 |
|---|---|---|
| committer | Shawn O. Pearce <sop@google.com> | 2009-07-03 11:00:16 -0700 |
| commit | f1a6b14fdc5402f9ed765a8a342d9c07c5b91e2d (patch) | |
| tree | f67b0e4fdb68bf3466202a27d5a0732edf424812 /main.py | |
| parent | ca3d8ff4fc7bac11a747e4f32a81b42a01f4f297 (diff) | |
| download | git-repo-f1a6b14fdc5402f9ed765a8a342d9c07c5b91e2d.tar.gz | |
Create an abstract Manifest base class
This will help as we add support for another manifest type.
Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'main.py')
| -rwxr-xr-x | main.py | 4 |
1 files changed, 0 insertions, 4 deletions
| @@ -32,11 +32,9 @@ from git_config import close_ssh | |||
| 32 | from command import InteractiveCommand | 32 | from command import InteractiveCommand |
| 33 | from command import MirrorSafeCommand | 33 | from command import MirrorSafeCommand |
| 34 | from command import PagedCommand | 34 | from command import PagedCommand |
| 35 | from editor import Editor | ||
| 36 | from error import ManifestInvalidRevisionError | 35 | from error import ManifestInvalidRevisionError |
| 37 | from error import NoSuchProjectError | 36 | from error import NoSuchProjectError |
| 38 | from error import RepoChangedException | 37 | from error import RepoChangedException |
| 39 | from manifest_xml import XmlManifest | ||
| 40 | from pager import RunPager | 38 | from pager import RunPager |
| 41 | 39 | ||
| 42 | from subcmds import all as all_commands | 40 | from subcmds import all as all_commands |
| @@ -97,8 +95,6 @@ class _Repo(object): | |||
| 97 | sys.exit(1) | 95 | sys.exit(1) |
| 98 | 96 | ||
| 99 | cmd.repodir = self.repodir | 97 | cmd.repodir = self.repodir |
| 100 | cmd.manifest = XmlManifest(cmd.repodir) | ||
| 101 | Editor.globalConfig = cmd.manifest.globalConfig | ||
| 102 | 98 | ||
| 103 | if not isinstance(cmd, MirrorSafeCommand) and cmd.manifest.IsMirror: | 99 | if not isinstance(cmd, MirrorSafeCommand) and cmd.manifest.IsMirror: |
| 104 | print >>sys.stderr, \ | 100 | print >>sys.stderr, \ |
