# HG changeset patch
# User Sune Foldager <c...@cyanite.org>
# Date 1252660067 -7200
# Node ID a2c367a7aa109bc00f1cba2252f3bfd6d4122921
# Parent  64320ec25561226e38a91b2fd07c34e7d6bd92c8
history: fix 'copy hash' to copy full hash again

This was broken by a refactoring in 0904336de754.

diff --git a/hggtk/history.py b/hggtk/history.py
--- a/hggtk/history.py
+++ b/hggtk/history.py
@@ -936,7 +936,7 @@
         dialog.display()
 
     def copy_hash(self, menuitem):
-        hash = str(self.repo[self.currevid])
+        hash = self.repo[self.currevid].hex()
         sel = (os.name == 'nt') and 'CLIPBOARD' or 'PRIMARY'
         clipboard = gtk.Clipboard(selection=sel)
         clipboard.set_text(hash)

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to