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

stable clone: do not make the same clone twice (fixes #514)

Changeset 7eb3ae16c74e

Parent 5b1e5f2e1896

by Johan Samyn

Changes to one file · Browse files at 7eb3ae16c74e Showing diff from parent 5b1e5f2e1896 Diff from another changeset...

 
39
40
41
 
 
42
43
44
 
64
65
66
67
68
69
70
 
307
308
309
 
 
 
 
 
 
 
 
310
311
312
 
39
40
41
42
43
44
45
46
 
66
67
68
 
69
70
71
 
308
309
310
311
312
313
314
315
316
317
318
319
320
321
@@ -39,6 +39,8 @@
  usrc = hglib.tounicode(src)   ucwd = hglib.tounicode(cwd)   + self.prev_dest = None +   # base layout box   box = QVBoxLayout()   box.setSpacing(6) @@ -64,7 +66,6 @@
  self.dest_combo = QComboBox()   self.dest_combo.setEditable(True)   self.dest_combo.setMinimumWidth(310) - self.dest_combo.lineEdit().returnPressed.connect(self.clone)   self.dest_btn = QPushButton(_('Browse...'))   self.dest_btn.setAutoDefault(False)   self.dest_btn.clicked.connect(self.browse_dest) @@ -307,6 +308,14 @@
  cmdline.append('--')   cmdline.append(dest)   + # do not make the same clone twice (see #514) + if dest == self.prev_dest: + qtlib.ErrorMsgBox(_('TortoiseHg Clone'), + _('Please enter a new destination path.')) + self.dest_combo.setFocus() + return + self.prev_dest = dest +   # start cloning   self.cmd.run(cmdline)