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

workbench: show commit tab when opening a linked repository (closes #22)

Changeset 3b15c8defaff

Parent f127d4086995

by Steve Borho

Changes to one file · Browse files at 3b15c8defaff Showing diff from parent f127d4086995 Diff from another changeset...

 
348
349
350
351
 
 
 
 
 
 
 
 
352
353
354
 
483
484
485
486
 
487
488
489
 
348
349
350
 
351
352
353
354
355
356
357
358
359
360
361
 
490
491
492
 
493
494
495
496
@@ -348,7 +348,14 @@
  repopath = hglib.fromunicode(repopath)   self._openRepo(path=repopath, reuse=reuse)   - @pyqtSlot(unicode) + @pyqtSlot(QString) + def openLinkedRepo(self, path): + self.showRepo(path) + rw = self.repoTabsWidget.currentWidget() + if rw: + rw.taskTabsWidget.setCurrentIndex(rw.commitTabIndex) + + @pyqtSlot(QString)   def showRepo(self, path):   """Activate the repo tab or open it if not available [unicode]"""   for i in xrange(self.repoTabsWidget.count()): @@ -483,7 +490,7 @@
  rw.output.connect(self.log.output)   rw.makeLogVisible.connect(self.log.setShown)   rw.revisionSelected.connect(self.updateHistoryActions) - rw.repoLinkClicked.connect(self.showRepo) + rw.repoLinkClicked.connect(self.openLinkedRepo)   rw.taskTabsWidget.currentChanged.connect(self.updateTaskViewMenu)   rw.toolbarVisibilityChanged.connect(self.updateToolBarActions)