Create state.hg