Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

stable commit: commit log MRU should be reset after inserting

Changeset 592d7c2ac3ca

Parent 2456232bcad5

by Yuki KODAMA

Changes to one file · Browse files at 592d7c2ac3ca Showing diff from parent 2456232bcad5 Diff from another changeset...

 
336
337
338
339
 
 
340
341
342
 
440
441
442
 
443
444
445
 
450
451
452
453
 
 
454
455
456
457
 
 
458
459
460
 
336
337
338
 
339
340
341
342
343
 
441
442
443
444
445
446
447
 
452
453
454
 
455
456
457
458
459
 
460
461
462
463
464
@@ -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])