def for_commit(hash_id, cmd_options={})
      hg_to_array(["log -r 'descendants(?) and head()' --template '\n{branches}'", hash_id], {}, cmd_options) do |line|
        build_with_name_only(line)
      end.compact.uniq
    end
def for_commit(hash_id, cmd_options={})
      hg_to_array(["log -r 'descendants(?) and head()' --template '\n{branches}'", hash_id], {}, cmd_options) do |line|
        build_with_name_only(line)
      end.compact.uniq
    end
Return an array of {Mercurial::Branch Branch} instances where a specified commit exists.
 Experimental, doesn't always return a correct list of branches.

 === Example:
  repository.branches.for_commit('291a498f04e9')