'Set sensible initial defaults'

def set_field_defaults(self):

    action = self.action
    if ((action == FETCH) or (action == PULL)):
        self.local_branch.setText(u'')
        self.remote_branch.setText(u'')
        return
    if (action == PUSH):
        branch = self.model.currentbranch
        try:
            idx = self.model.local_branches.index(branch)
        except ValueError:
            return
        if self.select_local_branch(idx):
            self.set_local_branch(branch)
        self.set_remote_branch(u'')
