mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
branchmap: use a different file name for filtered view of repo
This commit is contained in:
parent
c957b56f86
commit
256c2dfbf0
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user