Adding version number to state file formats can help us in preventing an older
mercurial try to read a newer graft state file which can cause issues.
Moreover, the version numbers can help in lot of other ways also.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
Comment Actions
Perhaps the version shouldn't be in the CBOR data structure, because future
state file might not be a superset of CBOR.
Comment Actions
That was a very nice suggestion. Thanks!
Abandoning since it's not required anymore because now by default, state.cmdstate() write version numbers in plain text.