Skip to content
Snippets Groups Projects
Commit 476324a3 authored by Pulkit Goyal's avatar Pulkit Goyal
Browse files

graft: start using the cmdstate class to read and write data to graftstate

This patch replaces the logic to read and write data to graftstate file to use
the state.cmdstate() class.

The previous graftstate format didn't had any version number on top of that, so
we have to catch the CorruptedState error and then read the graftstate in case
of old state files.

This will help us to implement nice additions to graft commands like
`--no-commit`, `--abort`, `--stop` flags.

Passing on test-graft.t shows that things are working fine.

Differential Revision: https://phab.mercurial-scm.org/D3654
parent 58b08f4c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment