'Return the status for the entry\'s path.'

def status(self):

    model = main.model()
    unmerged = utils.add_parents(model.unmerged)
    modified = utils.add_parents(model.modified)
    staged = utils.add_parents(model.staged)
    untracked = utils.add_parents(model.untracked)
    upstream_changed = utils.add_parents(model.upstream_changed)
    path = self.path
    if (path in unmerged):
        status = (icons.modified_name(), N_(u'Unmerged'))
    elif ((path in modified) and (self.path in staged)):
        status = (icons.partial_name(), N_(u'Partially    Staged'))
    elif (path in modified):
        status = (icons.modified_name(), N_(u'Modified'))
    elif (path in staged):
        status = (icons.staged_name(), N_(u'Staged'))
    elif (path in upstream_changed):
        status = (icons.upstream_name(), N_(u'Changed    Upstream'))
    elif (path in untracked):
        status = (None, u'?')
    else:
        status = (None, u'')
    return status
