# HG changeset patch
# User Simon Heimberg <[email protected]>
# Date 1237377968 -3600
# Node ID d42864803823ff795efc1d4631401ba1bad663f5
# Parent  2edb9e0e604f040d4b4af00d822f7838fdbdb615
commit: save all modified commit messages

diff -r 2edb9e0e604f -r d42864803823 hggtk/commit.py
--- a/hggtk/commit.py   Wed Mar 18 13:00:57 2009 +0100
+++ b/hggtk/commit.py   Wed Mar 18 13:06:08 2009 +0100
@@ -514,6 +514,8 @@
         # refresh overlay icons and commit dialog
         if dialog.return_code() == 0:
             shell_notify([self.cwd] + files)
+            if self.text.get_buffer().get_modified():
+                self._update_recent_messages(self.opts['message'])
             if qnew:
                 self.qnew_name.set_text('')
                 self.repo.invalidate()
@@ -521,7 +523,6 @@
                 _mq.__init__(_mq.ui, _mq.basepath, _mq.path)
             elif self.qheader is None:
                 self.text.set_buffer(gtk.TextBuffer())
-                self._update_recent_messages(self.opts['message'])
                 self._last_commit_id = self._get_tip_rev(True)
 
     def _get_tip_rev(self, refresh=False):


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to