# HG changeset patch # User Martin Geisler <m...@lazybytes.net> # Date 1267312232 -3600 # Branch stable # Node ID da628e139e2772600c196e6d20272585528857a7 # Parent dd1994094cb198cb3b61f5dda1a6f4ca82ef43f4 changeset: silently re-introduce tortoisehg.copyhash feature
diff --git a/tortoisehg/hgtk/changeset.py b/tortoisehg/hgtk/changeset.py --- a/tortoisehg/hgtk/changeset.py +++ b/tortoisehg/hgtk/changeset.py @@ -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() ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop