def count_range(hash_a, hash_b, cmd_options={})
      hg_to_array([%Q[log -r ?:? --template "{node}\n"], hash_a, hash_b], {}, cmd_options) do |line|
        line
      end.size
    end
def count_range(hash_a, hash_b, cmd_options={})
      hg_to_array([%Q[log -r ?:? --template "{node}\n"], hash_a, hash_b], {}, cmd_options) do |line|
        line
      end.size
    end
Count changesets in the range from hash_a to hash_b in the repository.

 === Example:
  repository.commits.count_range(hash_a, hash_b)