summaryrefslogtreecommitdiff
path: root/morphlib/app.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-08-01 09:04:31 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2012-08-01 13:35:21 +0000
commit26a06d2eb1f76fc0d45ac8376fb8838c8c06c922 (patch)
tree46bfa660c87ec48d734b5df9a1b92ee19887b286 /morphlib/app.py
parentec3d3314f2a6484b3cca591920ed4e8034e546f5 (diff)
downloadmorph-26a06d2eb1f76fc0d45ac8376fb8838c8c06c922.tar.gz
Move merge command to plugin
resolve_reponame is now duplicated since other functions use it. cmd_edit uses everything, so they can be removed from morphlib.app when it is moved to a plugin.
Diffstat (limited to 'morphlib/app.py')
-rwxr-xr-xmorphlib/app.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/morphlib/app.py b/morphlib/app.py
index 80cd20e3..d36d7370 100755
--- a/morphlib/app.py
+++ b/morphlib/app.py
@@ -730,24 +730,6 @@ class Morph(cliapp.Application):
f.write('\n')
os.rename(tempname, filename)
- def cmd_merge(self, args):
- '''Merge specified repositories from another system branch.'''
-
- if len(args) == 0:
- raise cliapp.AppException('morph merge must get a branch name '
- 'and some repo names as arguments')
-
- other_branch = args[0]
- mine = self._deduce_mine_directory()
- this_branch = self._deduce_system_branch()
-
- for repo in args[1:]:
- repo = self._resolve_reponame(repo)
- basename = os.path.basename(repo)
- pull_from = os.path.join(mine, other_branch, basename)
- repo_dir = os.path.join(mine, this_branch, basename)
- self.runcmd(['git', 'pull', pull_from, other_branch], cwd=repo_dir)
-
def status(self, **kwargs):
'''Show user a status update.