Other implementations of dirstate will want to replace the class used for the
dirstate map.  Allow this to happen by making the class an attribute of the
dirstate.
Details
Details
- Reviewers
 durin42 - Group Reviewers
 hg-reviewers - Commits
 - rHG8db4ca768416: dirstate: make map implementation overridable
rHG51f155abc689: dirstate: make map implementation overridable 
Diff Detail
Diff Detail
- Repository
 - rHG Mercurial
 - Lint
 Automatic diff as part of commit; lint not applicable. - Unit
 Automatic diff as part of commit; unit tests not applicable. 
Event Timeline
Comment Actions
Comment Actions
I think I need it to be an instance attribute, as for treedirstate it depends on the repo as to whether I want a normal dirstatemap or a treedirstatemap. See D1401 for where I override this in treedirstate.
Could you set this at class-level, rather than in init? I think then @mbolin would be able to make his subclass replace the class attribute and that'd be sufficient?