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

status: cleanup _sort_by_stat

Changeset 974cfcd26549

Parent 4f79102d1e51

by Steve Borho

Changes to one file · Browse files at 974cfcd26549 Showing diff from parent 4f79102d1e51 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​status.py Stacked
 
623
624
625
626
627
628
629
630
 
 
 
 
 
 
631
632
633
 
623
624
625
 
 
 
 
 
626
627
628
629
630
631
632
633
634
@@ -623,11 +623,12 @@
    def _sort_by_stat(self, model, iter1, iter2):   order = 'MAR!?IC' - lhs, rhs = (model.get_value(iter1, FM_STATUS), model.get_value(iter2, FM_STATUS)) - - # GTK+ bug that calls sort before a full row is inserted causing values to be None. - # When this happens, just return any value since the call is irrelevant and will be - # followed by another with the correct (non-None) value + lhs, rhs = (model.get_value(iter1, FM_STATUS), + model.get_value(iter2, FM_STATUS)) + # GTK+ bug that calls sort before a full row is inserted causing + # values to be None. When this happens, just return any value + # since the call is irrelevant and will be followed by another + # with the correct (non-None) value   if None in (lhs, rhs) :   return 0