Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

stable changeset: silently re-introduce tortoisehg.copyhash feature

Changeset 5f3465f2aa48

Parent 4b3786565f25

by Martin Geisler

Changes to one file · Browse files at 5f3465f2aa48 Showing diff from parent 4b3786565f25 Diff from another changeset...

 
153
154
155
 
 
 
156
157
158
 
462
463
464
 
 
 
 
 
465
466
467
 
153
154
155
156
157
158
159
160
161
 
465
466
467
468
469
470
471
472
473
474
475
@@ -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()