[meld] Fix commit message when no commit won't do anything



commit 7bc109bbe17aa102734ee9daecea784ad7179497
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat May 4 08:54:14 2013 +1000

    Fix commit message when no commit won't do anything

 meld/vcview.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/meld/vcview.py b/meld/vcview.py
index c19ccc2..c10a8fd 100644
--- a/meld/vcview.py
+++ b/meld/vcview.py
@@ -89,7 +89,10 @@ class CommitDialog(gnomeglade.Component):
         try:
             to_commit = parent.vc.get_files_to_commit(selected)
             topdir = parent.vc.root
-            to_commit = ["\t" + s for s in to_commit]
+            if to_commit:
+                to_commit = ["\t" + s for s in to_commit]
+            else:
+                to_commit = ["\t" + _("No files will be committed")]
         except NotImplementedError:
             topdir = _commonprefix(selected)
             to_commit = ["\t" + s[len(topdir) + 1:] for s in selected]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]