This is an archive of the discontinued Mercurial Phabricator instance.

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

Authored by pulkit on May 24 2018, 5:00 PM.

Details

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.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.