Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc1, 0.4rc2, and 0.4rc3

hggtk/clone: add recently cloned src path to pulldown list

Changeset 9355a4da1a9c

Parent 4190670203ef

by TK Soh

Changes to one file · Browse files at 9355a4da1a9c Showing diff from parent 4190670203ef Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​clone.py Stacked
 
193
194
195
 
 
 
 
 
 
 
 
 
 
 
196
197
198
 
240
241
242
 
 
243
244
245
 
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
 
251
252
253
254
255
256
257
258
@@ -193,6 +193,17 @@
  if rev is not None:   self._rev_input.set_text(rev)   + def _add_src_to_recent(self, src): + srclist = [x[0] for x in self._srclist] + if src in srclist: + return + + srclist.append(src) + srclist.sort() + self._srclist.clear() + for p in srclist: + self._srclist.append([p]) +   def _btn_clone_clicked(self, toolbutton, data=None):   # gather input data   src = self._src_input.get_text() @@ -240,6 +251,8 @@
  error_dialog("Clone error", traceback.format_exc())   return False   + self._add_src_to_recent(src) +  def run(cwd='', files=[], **opts):   dialog = CloneDialog(cwd, repos=files)   dialog.show_all()