D3652: graft: use state.cmdstate() to check whether graftstate exists

2018-05-25 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG58b08f4ce5f5: graft: use state.cmdstate() to check whether graftstate exists (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D3652: graft: use state.cmdstate() to check whether graftstate exists

2018-05-24 Thread pulkit (Pulkit Goyal)
pulkit created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY 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. REPOSITORY rHG