Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

history: show number of patches in status bar

Changeset 19c65c440bfc

Parent e5ea0f519b09

by Adrian Buehlmann

Changes to 3 files · Browse files at 19c65c440bfc Showing diff from parent e5ea0f519b09 Diff from another changeset...

 
94
95
96
 
 
97
98
99
 
123
124
125
 
 
 
126
127
128
 
94
95
96
97
98
99
100
101
 
125
126
127
128
129
130
131
132
133
@@ -94,6 +94,8 @@
  self.pbox.set_child_visible(False)   self.right2_label = gtk.Label()   self.pack_end(self.right2_label, False, False, padding=5) + self.right3_label = gtk.Label() + self.pack_end(self.right3_label, False, False, padding=20)   self.show_all()     def _pulse_timer(self, now=False): @@ -123,6 +125,9 @@
  def set_right2_text(self, msg):   self.right2_label.set_text(str(msg))   + def set_right3_text(self, msg): + self.right3_label.set_text(str(msg)) +   def set_pulse_step(self, val):   self.pbar.set_pulse_step(val)  
 
1029
1030
1031
1032
 
 
 
1033
1034
1035
 
1029
1030
1031
 
1032
1033
1034
1035
1036
1037
@@ -1029,7 +1029,9 @@
  # MQ widget   if 'mq' in self.exs:   # create MQWidget - self.mqwidget = thgmq.MQWidget(self.repo, accelgroup, self.tooltips) + self.mqwidget = thgmq.MQWidget( + self.repo, self.stbar.set_right3_text, + accelgroup, self.tooltips)   self.mqwidget.connect('patch-selected', self.patch_selected)   self.mqwidget.connect('repo-invalidated', self.repo_invalidated)  
 
73
74
75
76
 
77
78
79
80
 
81
82
83
 
260
261
262
 
 
 
 
 
 
 
 
263
264
265
 
73
74
75
 
76
77
78
79
80
81
82
83
84
 
261
262
263
264
265
266
267
268
269
270
271
272
273
274
@@ -73,11 +73,12 @@
  str)) # patch name   }   - def __init__(self, repo, accelgroup=None, tooltips=None): + def __init__(self, repo, status_func, accelgroup=None, tooltips=None):   gtk.VBox.__init__(self)     self.repo = repo   self.mqloaded = hasattr(repo, 'mq') + self.status_func = status_func     try:   extensions.find('qup') @@ -260,6 +261,14 @@
  # update UI sensitives   self.update_sensitives()   + # report status + status_text = '' + if self.has_mq(): + napp = len(self.repo.mq.applied) + nser = len(self.repo.mq.series) + status_text = _('%s of %s Patches applied') % (napp, nser) + self.status_func(status_text) +   def qgoto(self, patch):   """   [MQ] Execute 'qgoto' command.