'Set the new selection.'

def set_selection(self, s):

    self.staged = s.staged
    self.unmerged = s.unmerged
    self.modified = s.modified
    self.untracked = s.untracked
    self.notify_observers(self.message_selection_changed)
