Patch subject is complete summary.

# HG changeset patch
# User Emmanuel Rosa <goaway1...@gmail.com>
# Date 1252977674 14400
# Node ID 0216bb7f900107aa3cd7e57029ec6f7d92e4c72b
# Parent  3309415f398d237d127f47378d71b4e1cee945fb
commit: fix IndexError when 'recent commit messages' dropdown is clicked.

diff --git a/tortoisehg/hgtk/commit.py b/tortoisehg/hgtk/commit.py
--- a/tortoisehg/hgtk/commit.py
+++ b/tortoisehg/hgtk/commit.py
@@ -405,8 +405,11 @@
         liststore = self.msg_cbbox.get_model()
         liststore.clear()
         for msg in self._mru_messages:
-            sumline = hglib.toutf(hglib.tounicode(msg).splitlines()[0])
-            liststore.append([sumline, msg])
+            try:
+                sumline = hglib.toutf(hglib.tounicode(msg).splitlines()[0])
+                liststore.append([sumline, msg])
+            except IndexError:
+                pass
 
     def branch_clicked(self, button):
         if self.merging:
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to