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

Clone - check dest folder exists (fixes bug #50)

Changeset 9736501e4df3

Parent a86175eb1e02

by lior.tal

Changes to one file · Browse files at 9736501e4df3 Showing diff from parent a86175eb1e02 Diff from another changeset...

 
206
207
208
 
 
 
 
 
 
 
 
 
 
209
210
211
 
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
@@ -206,6 +206,16 @@
  dest = os.path.basename(src)   destQ = QString(hglib.tounicode(dest))   + if not dest.startswith('ssh://'): + if not os.path.exists(dest): + try: + os.mkdir(dest) + except EnvironmentError: + qtlib.ErrorMsgBox(_('TortoiseHg Clone'), + _('Error creating destination folder'), + _('Please specify a different path.')) + return False +   if srcQ:   l = list(self.shist)   if srcQ in l: