pulkit added a comment.
In https://phab.mercurial-scm.org/D2945#47831, @yuja wrote: > I think the magic has to vary depending on the current state file format. > The state file must be backward/forward compatible with the older/newer formats. > > If the current magic is `2\n` (and is parsed as `int(f.readline())`) for example, the > CBOR preamble would have to be `3\n`. Otherwise, old hg client cant determine > whether the state file is corrupted or written by newer client. There are some old state files, which don't have a version header on top of them like graftstate. I need suggestion on how to handle them. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2945 To: pulkit, #hg-reviewers Cc: yuja, mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel