implement hg.state() helper
implement hg.state() helper

staltz/mercury,beni55/mercury,Raynos/mercury,martintietz/mercury,jxson/mercury,vlad-x/mercury,staltz/mercury,mpal9000/mercury,eriser/mercury,tommymessbauer/mercury,eightyeight/mercury