by
Changes to 20 files · Browse files at b398d3431385 Showing diff from parent a673bfbfc502 b66a4e123a0f Diff from another changeset...
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
@@ -47,7 +47,7 @@ def prepare_display(self):
self.currow = None
self.graphview = None
- self.glog_parent = NoneY
+ self.glog_parent = None
node0, node1 = cmdutil.revpair(self.repo, self.opts.get('rev'))
self.load_details(self.repo.changelog.rev(node0))
@@ -86,15 +86,14 @@ if not ctx:
return
- if not self.parent_button.parent:
- self.parent_box.pack_start(gtk.HSeparator(), False, False)
- self.parent_box.pack_start(self.parent_button, False, False)
- self.parent_box.show_all()
-
parents = ctx.parents()
title = self.get_title()
if parents:
if len(parents) == 2:
+ if not self.parent_button.parent:
+ self.parent_box.pack_start(gtk.HSeparator(), False, False)
+ self.parent_box.pack_start(self.parent_button, False, False)
+ self.parent_box.show_all()
self.parent_box.show()
if self.diff_other_parent():
title += ':' + str(parents[1].rev())
@@ -397,6 +396,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'
@@ -405,6 +408,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)
@@ -525,11 +530,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)
@@ -599,10 +613,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:
@@ -702,9 +718,8 @@ opts = {'change':str(self.currev), 'bundle':self.bfile}
self._do_diff([self.curfile], opts)
- def file_row_act(self, tree, path, column) :
- 'Default action is the first entry in the context menu'
- self.filemenu.get_children()[0].activate()
+ def file_row_act(self, tree, path, column):
+ self.diff_file_rev(None)
return True
def save_file_rev(self, menuitem):
|
@@ -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'})
|
@@ -1902,8 +1902,7 @@ return True
def tree_row_act(self, tree, path, column) :
- 'Default action is the first entry in the context menu'
- self.tree_context_menu().get_children()[0].activate()
+ self.vdiff_change(None)
return True
def run(ui, *pats, **opts):
|
Loading...