The second one adds a settings to configure either the auto behavior from above or "always on":
# HG changeset patch
# User schlamar <marc.s...@googlemail.com>
# Date 1369314907 -7200
# Thu May 23 15:15:07 2013 +0200
# Node ID 6a1dbcb68024b241ae67c5b1a44a4ffde75e4f6d
# Parent 7bb762abc27b58fa4a0b2d5d9a6818d7f3e4aff4
workbench: added option to make urlCombo always visible (see #2600)
diff -r 7bb762abc27b -r 6a1dbcb68024 tortoisehg/hgqt/settings.py
--- a/tortoisehg/hgqt/settings.py Fri May 17 08:13:12 2013 +0200
+++ b/tortoisehg/hgqt/settings.py Thu May 23 15:15:07 2013 +0200
@@ -716,6 +716,14 @@
'<li><b>never</b>: Never show any prompt to activate any bookmarks.'
'</ul><p>'
'Default: prompt')),
+ _fi(_('Target combo'), 'tortoisehg.workbench.target-combo', (genDefaultCombo,
+ ['auto', 'always']),
+ _('Select if TortoiseHg will show a target combo in the sync toolbar.'
+ '<ul><li><b>auto</b>: The default. Show the combo if more than one '
+ 'target configured.'
+ '<li><b>always</b>: Always show the combo.'
+ '</ul><p>'
+ 'Default: auto'), restartneeded=True,),
)),
({'name': 'commit', 'label': _('Commit', 'config item'), 'icon': 'menucommit'},
(
diff -r 7bb762abc27b -r 6a1dbcb68024 tortoisehg/hgqt/workbench.py
--- a/tortoisehg/hgqt/workbench.py Fri May 17 08:13:12 2013 +0200
+++ b/tortoisehg/hgqt/workbench.py Thu May 23 15:15:07 2013 +0200
@@ -381,7 +381,9 @@
aliases = [hglib.tounicode(alias)
for alias, path in repo.ui.configitems('paths')]
- if len(aliases) <= 1:
+ combo_setting = self.ui.config('tortoisehg', 'workbench.target-combo',
+ 'auto')
+ if len(aliases) <= 1 and combo_setting == 'auto':
self.urlComboAction.setVisible(False)
else:
self.urlComboAction.setVisible(True)