branchmap: avoid changelog and attribute lookups in replacecache()
This should make things faster. I'm not sure which operations would benefit
from it though. Maybe branchmap application on clone?
Differential Revision: https://phab.mercurial-scm.org/D5162
public attribute not declared in interfaces: badpeer.badattribute
public attribute not declared in interfaces: badpeer.badmethod