Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

workbench: update annotate button on repo tab change

Changeset 63cc8738fd93

Parent 666e21eab050

by Adrian Buehlmann

Changes to 3 files · Browse files at 63cc8738fd93 Showing diff from parent 666e21eab050 Diff from another changeset...

 
195
196
197
198
 
 
 
 
199
200
201
 
195
196
197
 
198
199
200
201
202
203
204
@@ -195,7 +195,10 @@
  self.blk.setVisible(self._mode == 'file')   self.ann.setVisible(self._mode == 'file' and self._annotate)   self.displayFile() - + + def getAnnotate(self): + return self._annotate +   def setModel(self, model):   # XXX we really need only the "Graph" instance   self._model = model
 
221
222
223
 
 
 
224
225
226
 
221
222
223
224
225
226
227
228
229
@@ -221,6 +221,9 @@
  def setAnnotate(self, ann):   self.fileview.setAnnotate(ann)   + def getAnnotate(self): + return self.fileview.getAnnotate() +   def nextDiff(self):   notlast = self.fileview.nextDiff()   self.actionNextDiff.setEnabled(self.fileview.fileMode() and notlast and self.fileview.nDiffs())
 
121
122
123
 
124
125
 
 
 
126
 
127
128
129
 
121
122
123
124
125
126
127
128
129
130
131
132
133
134
@@ -121,9 +121,14 @@
  w = self.repoTabsWidget.currentWidget()     mode = 'diff' + ann = False   if w:   mode = w.getMode() + ann = w.getAnnotate() + else: + self.actionDiffMode.setEnabled(False)   self.actionDiffMode.setChecked(mode == 'diff') + self.actionAnnMode.setChecked(ann)     def addRepoTab(self, repo, fromhead=None):   '''opens the given repo in a new tab'''