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

manifestdialog: connect revSelected signal of annotate view

Changeset b158ff327cc6

Parent 02164ac5f5db

by Yuya Nishihara

Changes to one file · Browse files at b158ff327cc6 Showing diff from parent 02164ac5f5db Diff from another changeset...

 
163
164
165
 
 
 
166
167
168
 
174
175
176
177
 
 
 
 
 
178
179
180
 
181
182
183
 
163
164
165
166
167
168
169
170
171
 
177
178
179
 
180
181
182
183
184
185
186
 
187
188
189
190
@@ -163,6 +163,9 @@
  }   for w in self._filewidgets.itervalues():   self._contentview.addWidget(w) + # TODO: abstract way to connect this kind of signals + self.connect(self._filewidgets['annotate'], SIGNAL('revSelected'), + lambda a: self.setsource(path=a[0], rev=a[1]))   self._contentview.currentChanged.connect(   lambda: self._fileselected(self._treeview.currentIndex()))   @@ -174,10 +177,14 @@
  @pyqtSlot(object)   def setrev(self, rev):   """Change revision to show""" - origpath = self.path + self.setsource(self.path, rev) + + @pyqtSlot(unicode, object) + def setsource(self, path, rev): + """Change path and revision to show at once"""   self._rev = rev   self._setupmodel() - self.setpath(origpath) + self.setpath(path)     @property   def path(self):