I want to use this _stateextras more in upcoming patches to store some commit
time related information. Using defaultdict will help in cleaner code around
checking whether a file exists or not.
Details
Details
- Reviewers
marmoute indygreg - Group Reviewers
hg-reviewers - Commits
- rHGede4c121239e: mergestate: use collections.defaultdict(dict) for _stateextras
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.
This changes behavior so pop() will raise KeyError on a missing key. Is this desired?