Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

settings: force repo tab

Always show repo tabs, even for a single repo

Changeset bad7f26531b6

Parent 6f70038e44de

by Eduard-Cristian Stefan

Changes to 2 files · Browse files at bad7f26531b6 Showing diff from parent 6f70038e44de Diff from another changeset...

 
385
386
387
 
 
388
389
390
 
385
386
387
388
389
390
391
392
@@ -385,6 +385,8 @@
  _('Specify the number of spaces that tabs expand to in various '   'TortoiseHg windows. '   'Default: 0, Not expanded')), + _fi(_('Force Repo Tab'), 'tortoisehg.forcerepotab', genBoolCombo, + _('Always show repo tabs, even for a single repo. Default: False')),   _fi(_('Max Diff Size'), 'tortoisehg.maxdiff', genIntEditCombo,   _('The maximum size file (in KB) that TortoiseHg will '   'show changes for in the changelog, status, and commit windows. '
 
10
11
12
13
 
14
15
16
17
18
 
40
41
42
 
43
44
45
46
47
48
49
 
502
503
504
505
506
 
 
 
507
508
509
 
10
11
12
 
13
14
 
15
16
17
 
39
40
41
42
43
44
45
 
46
47
48
 
501
502
503
 
 
504
505
506
507
508
509
@@ -10,9 +10,8 @@
   import os  import sys - +from mercurial import ui  from mercurial.error import RepoError -  from tortoisehg.util import paths, hglib    from tortoisehg.hgqt import repomodel, thgrepo, cmdui, qtlib @@ -40,10 +39,10 @@
    def __init__(self):   QMainWindow.__init__(self) + self.ui = ui.ui()     self.setupUi()   self.setWindowTitle(_('TortoiseHg Workbench')) -   self.reporegistry = rr = RepoRegistryView(self)   rr.setObjectName('RepoRegistryView')   rr.showMessage.connect(self.showMessage) @@ -502,8 +501,9 @@
  self.updateToolBarActions()   tw = self.repoTabsWidget   w = tw.currentWidget() - - if tw.count() < 2: + if ((tw.count() == 0) or + ((tw.count() == 1) and + not self.ui.configbool('tortoisehg', 'forcerepotab', False))):   tw.tabBar().hide()   else:   tw.tabBar().show()