Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc1, 0.4rc2, and 0.4rc3

hggtk/thgconfig: use MRU lists to manage recently used data

Changeset e79119854335

Parent 1c90692f9e22

by TK Soh

Changes to one file · Browse files at e79119854335 Showing diff from parent 1c90692f9e22 Diff from another changeset...

 
456
457
458
459
 
460
461
462
 
532
533
534
535
 
 
536
537
538
 
456
457
458
 
459
460
461
462
 
532
533
534
 
535
536
537
538
539
@@ -456,7 +456,7 @@
  currow = len(vlist) - 1   if cpath in self.history.get_keys():   separator = False - for v in self.history.get_value(cpath): + for v in self.history.mrul(cpath):   if v in values: continue   if not separator:   vlist.append(['History', True]) @@ -532,7 +532,8 @@
  self.history.set_value(cpath, [])   elif newvalue in self.history.get_keys():   self.history.get_value(cpath).remove(newvalue) - self.history.get_value(cpath).insert(0, newvalue) + self.history.mrul(cpath).add(newvalue) + pass     def _apply_clicked(self, *args):   # Reload history, since it may have been modified externally