[meld/VersionControlRework: 79/123] vcview: Unsupport the now-unused commit_command API
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/VersionControlRework: 79/123] vcview: Unsupport the now-unused commit_command API
- Date: Sun, 19 Apr 2015 20:12:38 +0000 (UTC)
commit 5b60be5bb2760fec9a93753d3d199c863429cb95
Author: Kai Willadsen <kai willadsen gmail com>
Date: Wed Apr 1 09:09:54 2015 +1000
vcview: Unsupport the now-unused commit_command API
meld/vc/_vc.py | 3 ---
meld/vcview.py | 10 +++-------
2 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/meld/vc/_vc.py b/meld/vc/_vc.py
index 01a2ba6..e727d80 100644
--- a/meld/vc/_vc.py
+++ b/meld/vc/_vc.py
@@ -121,9 +121,6 @@ class Vc(object):
self._tree_cache = {}
self._tree_meta_cache = {}
- def commit_command(self, message):
- raise NotImplementedError()
-
def update_command(self):
raise NotImplementedError()
diff --git a/meld/vcview.py b/meld/vcview.py
index 2e7de2a..1ea202e 100644
--- a/meld/vcview.py
+++ b/meld/vcview.py
@@ -155,7 +155,7 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
# Map action names to VC commands and required arguments list
action_vc_cmds_map = {
- "VcCommit": ("commit_command", ("",)),
+ "VcCommit": ("commit", (lambda *args, **kwargs: None, [])),
"VcUpdate": ("update_command", ()),
"VcPush": ("push", (lambda *args, **kwargs: None, )),
"VcAdd": ("add_command", ()),
@@ -702,12 +702,8 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
def on_button_commit_clicked(self, obj):
response, commit_msg = vcdialogs.CommitDialog(self).run()
if response == Gtk.ResponseType.OK:
- try:
- self.vc.commit(
- self._command, self._get_selected_files(), commit_msg)
- except NotImplementedError:
- self._command_on_selected(
- self.vc.commit_command(commit_msg))
+ self.vc.commit(
+ self._command, self._get_selected_files(), commit_msg)
def on_button_add_clicked(self, obj):
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]