def METHOD_NAME(self, ud, d, name):
    """
    Return the latest upstream revision number
    """
    logger.debug2("BZR fetcher hitting network for %s", ud.url)
    bb.fetch2.check_network_access(d, self._buildbzrcommand(ud, d, "revno"), ud.url)
    output = runfetchcmd(self._buildbzrcommand(ud, d, "revno"), d, True)
    return output.strip()