Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

history: use the default clipboard for storing changeset hash

This fixes the storing of the hash on e.g. Ubuntu where it was only available
for mouse-pasting using the PRIMARY clipboard, whereas CLIPBOARD (the default
value) is available to all applications pasting from the default clipboard.

Changeset d03d755e33b9

Parent 7d0b45077f6a

by Henrik Stuart

Changes to one file · Browse files at d03d755e33b9 Showing diff from parent 7d0b45077f6a Diff from another changeset...

 
1308
1309
1310
1311
1312
 
1313
1314
1315
 
1308
1309
1310
 
 
1311
1312
1313
1314
@@ -1308,8 +1308,7 @@
    def copy_hash(self, menuitem):   hash = self.repo[self.currevid].hex() - sel = (os.name == 'nt') and 'CLIPBOARD' or 'PRIMARY' - clipboard = gtk.Clipboard(selection=sel) + clipboard = gtk.Clipboard()   clipboard.set_text(hash)     def export_patch(self, menuitem):