@staticmethod
def _filename(repo):
    """name of a branchcache file for a given repo or repoview"""
    filename = b'branch2'
    if repo.filtername:
        filename = b'%s-%s' % (filename, repo.filtername)
    return filename
