Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

status: protect against refresh while the dialog is closing

Changeset aef6aedd4beb

Parent bd707c62c507

by Steve Borho

Changes to one file · Browse files at aef6aedd4beb Showing diff from parent bd707c62c507 Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​status.py Stacked
 
524
525
526
 
 
 
 
527
528
529
 
562
563
564
565
 
566
567
568
 
581
582
583
584
585
586
587
 
524
525
526
527
528
529
530
531
532
533
 
566
567
568
 
569
570
571
572
 
585
586
587
 
588
589
590
@@ -524,6 +524,10 @@
  repository status. Also recheck and reselect files that remain   in the list.   """ + selection = self.filetree.get_selection() + if selection is None: + return +   repo = self.repo   # TODO - SJB - just realloc the repository here   repo.dirstate.invalidate() @@ -562,7 +566,7 @@
  explicit_changetypes = changetypes + (('clean', 'C', clean),)     # List of the currently checked and selected files to pass on to the new data - model, paths = self.filetree.get_selection().get_selected_rows() + model, paths = selection.get_selected_rows()   recheck = [entry[FM_PATH] for entry in model if entry[FM_CHECKED]]   reselect = [model[path][FM_PATH] for path in paths]   @@ -581,7 +585,6 @@
  self.filemodel.append([wfile in recheck, char,   toutf(wfile), wfile, mst, False])   - selection = self.filetree.get_selection()   selected = False   for row in model:   if row[FM_PATH] in reselect: