Initialize has_commit in _lp_hg_branch_color.