Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

history: move indication of current patch to 'mq' field in statusbar

Changeset ff656ee0ca3a

Parent 7393e9edfcd8

by Yuki KODAMA

Changes to one file · Browse files at ff656ee0ca3a Showing diff from parent 7393e9edfcd8 Diff from another changeset...

 
1092
1093
1094
1095
1096
 
1097
1098
1099
1100
1101
 
1102
1103
1104
1105
1106
 
 
 
 
 
1107
1108
1109
 
1092
1093
1094
 
 
1095
1096
1097
1098
 
 
1099
1100
 
 
 
 
1101
1102
1103
1104
1105
1106
1107
1108
@@ -1092,18 +1092,17 @@
  if hasattr(self, 'mqwidget'):   self.mqwidget.refresh()   # update status messages - status_text = '' - idle_text = None + mq_text = None   ntotal = self.mqwidget.get_num_patches()   if ntotal > 0:   ncount = self.mqwidget.get_num_applied() - status_text = _('%(count)d of %(total)d Patches applied') % { - 'count': ncount, 'total': ntotal} + mq_text = ''   if ncount > 0: - idle_text = _("Patch '%s' applied") % \ - self.mqwidget.get_qtip_patchname() - self.stbar.set_text(status_text, name='mq') - self.stbar.set_idle_text(idle_text) + mq_text += _('Current patch: %s, ') % \ + self.mqwidget.get_qtip_patchname() + mq_text += _('%(count)d of %(total)d applied patches') % { + 'count': ncount, 'total': ntotal} + self.stbar.set_text(mq_text, name='mq')     # Remember options to next time reload_log is called   self.filteropts = opts