Logo Search packages:      
Sourcecode: hgview version File versions  Download package

def hgviewlib::qt4::hgrepoview::HgRepoView::revisionSelected (   self,
  index,
  index_from 
)

Callback called when a revision is selected in the revisions table

Definition at line 206 of file hgrepoview.py.

00206                                                  :
        """
        Callback called when a revision is selected in the revisions table
        """
        model = self.model()
        if model and model.graph:
            row = index.row()
            gnode = model.graph[row]
            rev = gnode.rev
            if self.current_rev is not None and self.current_rev == rev:
                return
            if not self._in_history:
                del self._rev_history[self._rev_pos+1:]
                self._rev_history.append(rev)
                self._rev_pos = len(self._rev_history)-1

            self._in_history = False
            self.current_rev = rev

            self.emit(SIGNAL('revisionSelected'), rev)
            self.set_navigation_button_state()

    def set_navigation_button_state(self):


Generated by  Doxygen 1.6.0   Back to index