'Update the revision field when a list item is selected'

def revision_selected(self):

    revlist = self.current_revisions()
    widget = self.revisions
    revision = qtutils.selected_item(widget, revlist)
    if (revision is not None):
        self.revision.setText(revision)
