From d16c8781e9c3bc3a0c98eaf27fc6e35d71104fe4 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Tue, 15 Apr 2008 02:37:47 -0700 Subject: [PATCH] merge: add a commit checkbox to allow merging w/out commit Signed-off-by: David Aguilar --- ugit/controllers/merge.py | 3 ++- ui/merge.ui | 38 ++++++++++++++++++++++++-------------- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/ugit/controllers/merge.py b/ugit/controllers/merge.py index f190a687..a49c038c 100644 --- a/ugit/controllers/merge.py +++ b/ugit/controllers/merge.py @@ -69,6 +69,7 @@ class MergeController(QObserver): "You must specify a revision to merge") return + no_commit = not(self.view.checkbox_commit.isChecked()) squash = self.view.checkbox_squash.isChecked() msg = self.model.get_merge_message() qtutils.log( @@ -76,7 +77,7 @@ class MergeController(QObserver): '-m'+msg, revision, strategy='recursive', - no_commit=squash, + no_commit=no_commit, squash=squash ), quiet=False, diff --git a/ui/merge.ui b/ui/merge.ui index 246f3845..3f80399b 100644 --- a/ui/merge.ui +++ b/ui/merge.ui @@ -89,45 +89,55 @@ - - + + Visualize - + Qt::Horizontal - 211 - 20 + 231 + 24 - - + + - Cancel + Squash - - + + - Merge + Commit + + + true - - + + - Squash + Cancel + + + + + + + Merge -- 2.11.4.GIT