Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

manifestdialog: pass file status from data model to HgFileView

This prevents a call to repo.status() to determine what the file status was at
the given revision.

Changeset 107d0dcf69d0

Parent 69cd873498d6

by Steve Borho

Changes to one file · Browse files at 107d0dcf69d0 Showing diff from parent 69cd873498d6 Diff from another changeset...

 
23
24
25
26
27
28
29
30
31
 
366
367
368
 
 
 
 
 
369
370
371
 
374
375
376
377
 
378
379
380
 
23
24
25
 
 
 
26
27
28
 
363
364
365
366
367
368
369
370
371
372
373
 
376
377
378
 
379
380
381
382
@@ -23,9 +23,6 @@
 from tortoisehg.hgqt.filedialogs import FileLogDialog, FileDiffDialog  from tortoisehg.hgqt.manifestmodel import ManifestModel   -# TODO -# Communicate status (MARC) from model to HgFileView -  class ManifestDialog(QMainWindow):   """   Qt4 dialog to display all files of a repo at a given revision @@ -366,6 +363,11 @@
  """Return currently selected path"""   return self._treemodel.filePath(self._treeview.currentIndex())   + @property + def status(self): + """Return currently selected path""" + return self._treemodel.fileStatus(self._treeview.currentIndex()) +   @pyqtSlot(unicode)   def setPath(self, path):   """Change path to show""" @@ -374,7 +376,7 @@
  @pyqtSlot()   def _updatecontent(self):   self._fileview.setContext(self._repo[self._rev]) - self._fileview.displayFile(self.path) # TODO, report status + self._fileview.displayFile(self.path, status=self.status)     @pyqtSlot()   def _emitPathChanged(self):