Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc2, 0.4rc3, and 0.4rc4

0.4rc2 changeset: copy hash to clipboard is now optional, default: False

Changeset e677decc9814

Parent 68a01cdebb39

by Steve Borho

Changes to 2 files · Browse files at e677decc9814 Showing diff from parent 68a01cdebb39 Diff from another changeset...

 
121
122
123
124
 
 
125
126
127
 
468
469
470
471
472
 
 
 
 
 
473
474
475
 
121
122
123
 
124
125
126
127
128
 
469
470
471
 
 
472
473
474
475
476
477
478
479
@@ -121,7 +121,8 @@
  # TODO: Add toggle for gmtime/localtime   eob = buf.get_end_iter()   date = time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(ctx.date()[0])) - self.clipboard.set_text(short(ctx.node())) + if self.clipboard: + self.clipboard.set_text(short(ctx.node()))   change = str(rev) + ':' + short(ctx.node())   tags = ' '.join(ctx.tags())   parents = self.parents @@ -468,8 +469,11 @@
  return _menu     def get_body(self): - sel = (os.name == 'nt') and 'CLIPBOARD' or 'PRIMARY' - self.clipboard = gtk.Clipboard(selection=sel) + 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 = gtk.Frame()
 
87
88
89
 
 
 
90
91
92
 
87
88
89
90
91
92
93
94
95
@@ -87,6 +87,9 @@
  ('Log Batch Size', 'tortoisehg.graphlimit', ['500'],   'The number of revisions to read and display in the'   ' changelog viewer in a single batch. Default: 500'), + ('Copy Hash', 'tortoisehg.copyhash', ['False', 'True'], + 'Allow the changelog viewer to copy hash of currently' + ' selected changeset into the clipboard. Default: False'),   ('Overlay Icons', 'tortoisehg.overlayicons',   ['False', 'True', 'localdisks'],   'Display overlay icons in Explorer windows.'