Changeset 5f3465f2aa48…
Parent 4b3786565f25…
by
Changes to one file · Browse files at 5f3465f2aa48 Showing diff from parent 4b3786565f25 Diff from another changeset...
@@ -153,6 +153,9 @@ # update dialog title
self.set_title(title)
+ if self.clipboard:
+ self.clipboard.set_text(str(ctx))
+
pats = self.pats
if self.graphview:
(path, focus) = self.graphview.treeview.get_cursor()
@@ -462,6 +465,11 @@ 'tortoisehg', 'changeset-expander')
self.curfile = ''
+ if self.repo.ui.configbool('tortoisehg', 'copyhash'):
+ sel = (os.name == 'nt') and 'CLIPBOARD' or 'PRIMARY'
+ self.clipboard = gtk.Clipboard(selection=sel)
+ else:
+ self.clipboard = None
self.filemenu = self.file_context_menu()
details_frame_parent = gtk.VBox()
|
Loading...