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 changeset, csinfo: add method to clear cache

Changeset 7f3218bd6428

Parent b68b415f5357

by Yuki KODAMA

Changes to 2 files · Browse files at 7f3218bd6428 Showing diff from parent b68b415f5357 Diff from another changeset...

 
69
70
71
 
 
 
72
73
74
 
69
70
71
72
73
74
75
76
77
@@ -69,6 +69,9 @@
  self.repo = repo   self.summarypanel.update(repo=repo)   + def clear_cache(self): + self.summarypanel.info.clear_cache() +   def diff_other_parent(self):   return self.other_parent_checkbutton.get_active()  
 
358
359
360
 
 
361
362
363
 
385
386
387
 
388
389
390
391
 
 
392
393
394
395
396
397
398
399
 
521
522
523
 
 
 
358
359
360
361
362
363
364
365
 
387
388
389
390
391
392
393
394
395
396
397
398
399
 
 
400
401
402
 
524
525
526
527
528
@@ -358,6 +358,8 @@
  def get_markup(self, *args):   return self.try_cache('markup', SummaryInfo.get_markup, *args)   + def clear_cache(self): + self.cache = {}    class SummaryBase(object):   @@ -385,15 +387,16 @@
  target = self.target   if target is not None:   target = str(target) + self.target = target   if custom is not None:   self.custom = custom   if repo is None:   repo = self.repo + if repo is not None: + self.repo = repo   self.ctx = create_context(repo, target)   if self.ctx is None:   return False # cannot update - self.target = target - self.repo = repo   return True    class SummaryPanel(SummaryBase, gtk.Frame): @@ -521,3 +524,5 @@
  # insert data & append to label   info += snip % data   self.set_markup(info) + + return True