From 4a8358e584d2b1ddb4fde820da82ac796217b931 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Sun, 4 Mar 2012 17:09:42 -0800 Subject: [PATCH] app: Add `git cola archive` sub-command Signed-off-by: David Aguilar --- cola/app.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cola/app.py b/cola/app.py index 08c38883..909f4cd6 100644 --- a/cola/app.py +++ b/cola/app.py @@ -131,7 +131,8 @@ class ColaApplication(object): def parse_args(context): # TODO switch to argparse, bundle it for win32? args = sys.argv[1:] - builtins = set(('branch', + builtins = set(('archive', + 'branch', 'browse', 'classic', 'dag', @@ -248,7 +249,11 @@ def main(context): os.chdir(model.git.worktree()) # Show the GUI - if context == 'branch': + if context == 'archive': + from cola.widgets.archive import GitArchiveDialog + model.update_status() + view = GitArchiveDialog(model.currentbranch) + elif context == 'branch': from cola.widgets.createbranch import create_new_branch view = create_new_branch() elif context in ('git-dag', 'dag'): -- 2.11.4.GIT