Submitter | Pierre-Yves David |
---|---|
Date | Jan. 1, 2013, 10:14 p.m. |
Message ID | <1b0ecc6b8996f47b1d2a.1357078482@yamac.lan> |
Download | mbox | patch |
Permalink | /patch/343/ |
State | Accepted |
Commit | 4df8716d32f188caae4da08790afaedb2b383dfc |
Headers | show |
Comments
Patch
diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py --- a/mercurial/branchmap.py +++ b/mercurial/branchmap.py @@ -8,12 +8,15 @@ from node import bin, hex, nullid, nullrev 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: f = repo.opener(_filename(repo)) lines = f.read().split('\n')