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

stable thgimport: use QDir.toNativeSeparators(), avoid str() conversions (closes #682)

Changeset 112dc67bc9ca

Parent 7479281234ea

by Steve Borho

Changes to one file · Browse files at 112dc67bc9ca Showing diff from parent 7479281234ea Diff from another changeset...

 
178
179
180
181
182
183
 
 
184
185
186
 
189
190
191
192
193
 
194
195
196
 
178
179
180
 
 
 
181
182
183
184
185
 
188
189
190
 
 
191
192
193
194
@@ -178,9 +178,8 @@
  filter=_FILE_FILTER)   if filelist:   # Qt file browser uses '/' in paths, even on Windows. - filelist = [str(x.replace('/', os.sep)) for x in filelist] - response = os.pathsep.join(filelist) - self.src_combo.setEditText(response) + nl = QStringList([QDir.toNativeSeparators(x) for x in filelist]) + self.src_combo.setEditText(nl.join(os.pathsep))   self.src_combo.setFocus()     def browsedir(self): @@ -189,8 +188,7 @@
  directory=self.repo.root,   caption=caption)   if path: - response = str(path.replace('/', os.sep)) - self.src_combo.setEditText(response) + self.src_combo.setEditText(QDir.toNativeSeparators(path))   self.src_combo.setFocus()     def getcliptext(self):