Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0, 2.0.1, and 2.0.2

stable manifest: update actions list at widget creation. Closes #149 and #150

Changeset 3313795c4e44

Parent 302221936e54

by patrice.lacouture@gmail.com

Changes to one file · Browse files at 3313795c4e44 Showing diff from parent 302221936e54 Diff from another changeset...

 
130
131
132
 
 
133
134
135
 
249
250
251
252
 
253
254
255
 
345
346
347
348
349
350
 
 
351
 
352
353
354
 
130
131
132
133
134
135
136
137
 
251
252
253
 
254
255
256
257
 
347
348
349
 
 
 
350
351
352
353
354
355
356
@@ -130,6 +130,8 @@
  self._setupmodel()   self._treeview.setCurrentIndex(self._treemodel.index(0, 0))   + self.setRev(self._rev) +   def _initwidget(self):   self.setLayout(QVBoxLayout())   self._splitter = QSplitter() @@ -249,7 +251,7 @@
  if self.path is None:   return   if self.rev is None: - files = [repo.wjoin(self.path)] + files = [self._repo.wjoin(self.path)]   wctxactions.edit(self, self._repo.ui, self._repo, files)   else:   base, _ = visdiff.snapshot(self._repo, [self.path], @@ -345,10 +347,10 @@
  """Change revision to show"""   self.setSource(self.path, rev)   real = type(rev) is int - for act in ['ldiff', 'edit']: - self._actions[act].setEnabled(real) - for act in ['diff', 'revert']: + self._actions['ldiff'].setEnabled(real) + for act in ['diff', 'edit']:   self._actions[act].setEnabled(real or rev is None) + self._actions['revert'].setEnabled(real)     @pyqtSlot(unicode, object)   @pyqtSlot(unicode, object, int)