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: hginit dialog should use current repo root basename as initial path

Changeset aa981986702c

Parent 68c1c4ab3eeb

by Steve Borho

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

 
538
539
540
541
 
 
 
 
 
 
542
543
544
 
538
539
540
 
541
542
543
544
545
546
547
548
549
@@ -538,7 +538,12 @@
  def newRepository(self):   """ Run init dialog """   from tortoisehg.hgqt.hginit import InitDialog - initdlg = InitDialog(parent=self) + repoWidget = self.repoTabsWidget.currentWidget() + if repoWidget: + path = os.path.dirname(repoWidget.repo.root) + else: + path = os.getcwd() + initdlg = InitDialog([path], parent=self)   if initdlg.exec_():   path = initdlg.getPath()   self.openRepo(path)