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

stable thgimport: root browse searches at the current repo root

Almost nothing annoys me more than browse dialogs opening up from C:\Windows

Changeset 26667d874ffa

Parent 2e3446ba7cb1

by Steve Borho

Changes to one file · Browse files at 26667d874ffa Showing diff from parent 2e3446ba7cb1 Diff from another changeset...

 
173
174
175
 
176
177
178
 
183
184
185
186
 
 
 
187
188
189
 
173
174
175
176
177
178
179
 
184
185
186
 
187
188
189
190
191
192
@@ -173,6 +173,7 @@
  def browsefiles(self):   caption = _("Select patches")   filelist = QFileDialog.getOpenFileNames(parent=self, caption=caption, + directory=self.repo.root,   filter=_FILE_FILTER)   if filelist:   # Qt file browser uses '/' in paths, even on Windows. @@ -183,7 +184,9 @@
    def browsedir(self):   caption = _("Select Directory containing patches") - path = QFileDialog.getExistingDirectory(parent=self, caption=caption) + path = QFileDialog.getExistingDirectory(parent=self, + directory=self.repo.root, + caption=caption)   if path:   response = str(path.replace('/', os.sep))   self.src_combo.setEditText(response)