branchmap: use a different file name for filtered view of repo

This commit is contained in:
Pierre-Yves David 2012-12-24 03:06:03 +01:00
parent c957b56f86
commit 256c2dfbf0

View File

@ -10,8 +10,11 @@ import encoding
import util
def _filename(repo):
"""name of a branchcache file for a given repo"""
return "cache/branchheads"
"""name of a branchcache file for a given repo or repoview"""
filename = "cache/branchheads"
if repo.filtername:
filename = '%s-%s' % (filename, repo.filtername)
return filename
def read(repo):
try: