Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.3, 2.0, and 2.0.1

stable workbench: open dialog should use current repo root basename as initial path

Changeset a0a13a6c2021

Parent aa981986702c

by Steve Borho

Changes to one file · Browse files at a0a13a6c2021 Showing diff from parent aa981986702c Diff from another changeset...

 
565
566
567
 
 
 
 
 
 
568
569
570
 
 
571
572
573
 
565
566
567
568
569
570
571
572
573
574
 
 
575
576
577
578
579
@@ -565,9 +565,15 @@
  def openRepository(self):   """ Open repo from File menu """   caption = _('Select repository directory to open') + repoWidget = self.repoTabsWidget.currentWidget() + if repoWidget: + cwd = os.path.dirname(repoWidget.repo.root) + else: + cwd = os.getcwd() + cwd = hglib.tounicode(cwd)   FD = QFileDialog - path = FD.getExistingDirectory(parent=self, caption=caption, - options=FD.ShowDirsOnly | FD.ReadOnly) + path = FD.getExistingDirectory(self, caption, cwd, + FD.ShowDirsOnly | FD.ReadOnly)   self._openRepo(path=hglib.fromunicode(path))     def _openRepo(self, path, reuse=False):