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

history: persist column order

Changeset 32200940a022

Parent b181aaeee585

by Adrian Buehlmann

Changes to one file · Browse files at 32200940a022 Showing diff from parent b181aaeee585 Diff from another changeset...

 
286
287
288
 
289
290
291
 
414
415
416
 
 
 
 
 
 
417
418
419
 
445
446
447
 
448
449
450
 
465
466
467
 
 
468
469
470
 
286
287
288
289
290
291
292
 
415
416
417
418
419
420
421
422
423
424
425
426
 
452
453
454
455
456
457
458
 
473
474
475
476
477
478
479
480
@@ -286,6 +286,7 @@
  for show, uitext, property, colname in self.details_model:   columns.append(colname)   self.graphview.set_columns(columns) + self.column_order = ' '.join(columns)   reload = False   for show, uitext, property, colname in self.details_model:   if property == 'graphcol': @@ -414,6 +415,12 @@
  if col in self.showcol:   self.graphview.set_property(col+'-column-visible',   self.showcol[col]) + try: + self.graphview.set_columns(self.column_order.split()) + except KeyError: + # ignore unknown column names, these could originate from garbeled + # persisted data + pass   self.get_menuitem(_('Compact Graph')).set_sensitive(self.graphcol)   self.get_menuitem(_('Color by Branch')).set_sensitive(self.graphcol)   @@ -445,6 +452,7 @@
  vis = self.graphview.get_property(col+'-column-visible')   settings['glog-vis-'+col] = vis   settings['filter-mode'] = self.filtercombo.get_active() + settings['column-order'] = ' '.join(self.graphview.get_columns())   return settings     def load_settings(self, settings): @@ -465,6 +473,8 @@
  if key in settings:   self.showcol[col] = settings[key]   self.filter_mode = settings.get('filter-mode', 1) + default_co = 'graph rev id branch msg user date utc age tag' + self.column_order = settings.get('column-order', default_co)     def refresh_model(self):   'Refresh data in the history model, without reloading graph'