graft: use state.cmdstate() to check whether graftstate exists...
graft: use state.cmdstate() to check whether graftstate exists
This is a step towards make graft use the new state.cmdstate() class. This patch
replaces the ugly try-except with nice if-else conditionals.
Differential Revision:
https://phab.mercurial-scm.org/D3652