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 name of applied patch as idle status

Changeset 74061568b17f

Parent 3e56e8bd50e0

by Adrian Buehlmann

Changes to 2 files · Browse files at 74061568b17f Showing diff from parent 3e56e8bd50e0 Diff from another changeset...

 
1031
1032
1033
1034
1035
 
1036
1037
1038
 
1031
1032
1033
 
 
1034
1035
1036
1037
@@ -1031,8 +1031,7 @@
  if 'mq' in self.exs:   # create MQWidget   self.mqwidget = thgmq.MQWidget( - self.repo, self.stbar.set_right3_text, - accelgroup, self.tooltips) + self.repo, self.stbar, 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
84
 
263
264
265
 
266
267
268
269
270
271
 
 
 
 
 
272
273
274
 
73
74
75
 
76
77
78
79
80
 
81
82
83
84
 
263
264
265
266
267
268
269
270
271
 
272
273
274
275
276
277
278
279
@@ -73,12 +73,12 @@
  str)) # patch name   }   - def __init__(self, repo, status_func, accelgroup=None, tooltips=None): + def __init__(self, repo, statusbar, accelgroup=None, tooltips=None):   gtk.VBox.__init__(self)     self.repo = repo   self.mqloaded = hasattr(repo, 'mq') - self.status_func = status_func + self.statusbar = statusbar     try:   extensions.find('qup') @@ -263,12 +263,17 @@
    # report status   status_text = '' + idle_text = None   if self.has_mq():   nser = len(self.repo.mq.series)   if nser:   napp = len(self.repo.mq.applied)   status_text = _('%s of %s Patches applied') % (napp, nser) - self.status_func(status_text) + if napp: + pn = self.get_qtip_patchname() + idle_text = _("Patch '%s' applied") % pn + self.statusbar.set_right3_text(status_text) + self.statusbar.set_idle_text(idle_text)     def qgoto(self, patch):   """