def METHOD_NAME(self):
    branch = self.get_branch()
    if not branch:
        # Error logged already in get_branch().
        raise RepositoryException('cannot get branch for repository {}'.
                                  format(self))
    hg_command = [self.command, 'incoming']
    if branch != "default":
        hg_command.append("-b")
        hg_command.append(branch)
    cmd = self.get_command(hg_command, work_dir=self.path,
                           env_vars=self.env, logger=self.logger)
    cmd.execute()
    self.logger.info("output of {}:".format(cmd))
    self.logger.info(cmd.getoutputstr())
    retcode = cmd.getretcode()
    if cmd.getstate() != Command.FINISHED or retcode not in [0, 1]:
        cmd.log_error("failed to perform incoming")
        raise RepositoryException('failed to perform incoming command '
                                  'for repository {}'.format(self))
    if retcode == 0:
        return True
    else:
        return False