diff options
Diffstat (limited to 'main.py')
-rwxr-xr-x | main.py | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -32,11 +32,9 @@ from git_config import init_ssh, 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 |
@@ -61,6 +59,8 @@ class _Repo(object): | |||
61 | def __init__(self, repodir): | 59 | def __init__(self, repodir): |
62 | self.repodir = repodir | 60 | self.repodir = repodir |
63 | self.commands = all_commands | 61 | self.commands = all_commands |
62 | # add 'branch' as an alias for 'branches' | ||
63 | all_commands['branch'] = all_commands['branches'] | ||
64 | 64 | ||
65 | def _Run(self, argv): | 65 | def _Run(self, argv): |
66 | name = None | 66 | name = None |
@@ -97,8 +97,6 @@ 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 = XmlManifest(cmd.repodir) | ||
101 | Editor.globalConfig = cmd.manifest.globalConfig | ||
102 | 100 | ||
103 | if not isinstance(cmd, MirrorSafeCommand) and cmd.manifest.IsMirror: | 101 | if not isinstance(cmd, MirrorSafeCommand) and cmd.manifest.IsMirror: |
104 | print >>sys.stderr, \ | 102 | print >>sys.stderr, \ |