# HG changeset patch
# User Steve Borho <
st...@borho.org>
# Date 1624898843 18000
# Mon Jun 28 11:47:23 2021 -0500
# Node ID a58b2c4c2817443cd9fa9c030b780e2437f9534f
# Parent e45c1f60eb91b0fd15e43889099dd26c1c5119fc
allow hash-copy to clipboard to be disabled
diff -r e45c1f60eb91 -r a58b2c4c2817 tortoisehg/hgqt/repoview.py
--- a/tortoisehg/hgqt/repoview.py Tue Jun 01 20:28:27 2021 +0900
+++ b/tortoisehg/hgqt/repoview.py Mon Jun 28 11:47:23 2021 -0500
@@ -131,7 +131,8 @@
self.setSelectionBehavior(QAbstractItemView.SelectRows)
self.doubleClicked.connect(self.revActivated)
- self.clicked.connect(self.revClicked)
+ if repoagent.configBool('tortoisehg', 'clipboard_hash', True):
+ self.clicked.connect(self.revClicked)
@property
def repo(self):
diff -r e45c1f60eb91 -r a58b2c4c2817 tortoisehg/hgqt/settings.py
--- a/tortoisehg/hgqt/settings.py Tue Jun 01 20:28:27 2021 +0900
+++ b/tortoisehg/hgqt/settings.py Mon Jun 28 11:47:23 2021 -0500
@@ -823,6 +823,10 @@
'<b>Note</b>: This layouter colors edges using branch information '
'and does not display graft edges, regardless of whether they are '
'requested or not.')),
+ _fi(_('Copy hash to clipboard'), 'tortoisehg.clipboard_hash',
+ genBoolRBGroup,
+ _('When a revision is selected in Workbench, copy hash to clipboard. '
+ 'Default: True')),
)),
({'name': 'commit', 'label': _('Commit', 'config item'), 'icon': 'hg-commit'},
(