Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.6, 0.7, and 0.7.1

status: refactor file selection code

Changeset ff376f53315b

Parent d3e3f85b3226

by TK Soh

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

Change 1 of 1 Show Entire File hggtk/​status.py Stacked
 
868
869
870
871
872
 
873
874
875
 
 
 
 
 
 
 
 
876
877
878
 
868
869
870
 
 
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
@@ -868,11 +868,18 @@
      def _sel_clicked(self, state): - for entry in self.model : entry[0] = state - self._update_check_count() + self._select_files(state)   return True     + def _select_files(self, state, ctype=None): + for entry in self.model: + if ctype and not entry[1] in ctype: + continue + entry[0] = state + self._update_check_count() + +   def _relevant_files(self, stats):   return [item[3] for item in self.model if item[0] and item[1] in stats]