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 changset: use csinfo expander if global config option set

Set

[tortoisehg]
changeset-expander = True

in mercurial.ini to enable the expander (default is False)

Changeset b66a4e123a0f

Parent 4b6d5278e053

by Adrian Buehlmann

Changes to 2 files · Browse files at b66a4e123a0f Showing diff from parent 4b6d5278e053 Diff from another changeset...

 
392
393
394
 
 
 
 
395
396
397
 
400
401
402
 
 
403
404
405
 
512
513
514
 
 
 
 
515
516
517
518
519
 
 
 
 
 
 
520
521
522
 
586
587
588
589
 
590
591
592
 
 
 
593
594
595
 
392
393
394
395
396
397
398
399
400
401
 
404
405
406
407
408
409
410
411
 
518
519
520
521
522
523
524
525
526
527
528
 
529
530
531
532
533
534
535
536
537
 
601
602
603
 
604
605
606
 
607
608
609
610
611
612
@@ -392,6 +392,10 @@
  return menu     def get_body(self): + embedded = bool(self.stbar) + use_expander = embedded and self.ui.configbool( + 'tortoisehg', 'changeset-expander') +   self.curfile = ''   if self.repo.ui.configbool('tortoisehg', 'copyhash'):   sel = (os.name == 'nt') and 'CLIPBOARD' or 'PRIMARY' @@ -400,6 +404,8 @@
  self.clipboard = None   self.filemenu = self.file_context_menu()   + details_frame_parent = gtk.VBox() +   # changeset frame   details_frame = gtk.Frame()   details_frame.set_shadow_type(gtk.SHADOW_ETCHED_IN) @@ -512,11 +518,20 @@
  self.patchstyle = csinfo.panelstyle(contents=('patch', 'branch',   'user', 'dateage', 'parents'),   selectable=True) + if use_expander: + self.csetstyle['expander'] = True + self.patchstyle['expander'] = True +   self.summarypanel = csinfo.create(self.repo, custom=custom)     ## summary box (summarypanel + separator)   self.summarybox = gtk.VBox() - details_box.pack_start(self.summarybox, False, False) + if use_expander: + # don't scroll summarybox + details_frame_parent.pack_start(self.summarybox, False, False) + else: + # scroll summarybox + details_box.pack_start(self.summarybox, False, False)   self.summarybox.pack_start(self.summarypanel, False, False)   self.summarybox.pack_start(gtk.HSeparator(), False, False)   @@ -586,10 +601,12 @@
    self._hpaned = gtk.HPaned()   self._hpaned.pack1(list_frame, True, True) - self._hpaned.pack2(details_frame, True, True) + self._hpaned.pack2(details_frame_parent, True, True)   self._hpaned.set_position(self._setting_hpos)   - if self.stbar: + details_frame_parent.pack_start(details_frame, True, True) + + if embedded:   # embedded by changelog browser   return self._hpaned   else:
 
467
468
469
470
 
471
472
473
 
467
468
469
 
470
471
472
473
@@ -467,7 +467,7 @@
  self.csstyle = style     self.expander = gtk.Expander() - self.expander.set_expanded(True) + self.expander.set_expanded(False)     # layout table for contents   self.table = gtklib.LayoutTable(ypad=1, headopts={'weight': 'bold'})