Fix some formatting in salt.states.hg
Fix erroneous variable name and conditional in hg state, Fix #6661
Merge pull request #6684 from basepi/hg6661

Fix erroneous variable name and conditional in hg state, Fix #6661