# HG changeset patch
# User Yuki KODAMA <endflow....@gmail.com>
# Date 1256453413 -32400
# Branch stable
# Node ID 592d7c2ac3ca27dc9f22d90a347ecda0a0cfa893
# Parent  2456232bcad54f3b4bf263d00d90ab5d6fa6bd0e
commit: commit log MRU should be reset after inserting

diff --git a/tortoisehg/hgtk/commit.py b/tortoisehg/hgtk/commit.py
--- a/tortoisehg/hgtk/commit.py
+++ b/tortoisehg/hgtk/commit.py
@@ -336,7 +336,8 @@
         else:
             self.qnew_name = None

-        liststore = gtk.ListStore(str, str)
+        liststore = gtk.ListStore(str, # summary line (utf-8)
+                                  str) # full commit message
         self.msg_cbbox = gtk.ComboBox(liststore)
         cell = gtk.CellRendererText()
         self.msg_cbbox.pack_start(cell, True)
@@ -440,6 +441,7 @@
                     return
             buf.set_text(model[index][1])
             buf.set_modified(False)
+            combobox.set_active(-1)

     def first_msg_popdown(self, combo, shown):
         combo.disconnect(self.popupid)
@@ -450,11 +452,13 @@
         if msg:
             self._mru_messages.add(msg)
             self.settings.write()
-            if self.popupid is not None: return
+            if self.popupid is not None:
+                return
         liststore = self.msg_cbbox.get_model()
         liststore.clear()
         for msg in self._mru_messages:
-            if not msg: continue
+            if not msg:
+                continue
             sumline = hglib.toutf(hglib.tounicode(msg).splitlines()[0])
             liststore.append([sumline, msg])

Attachment: thg-kuy_rev4754.patch
Description: Binary data

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to