def parse_range(range)
      unless range.is_a? Range
        range = range.to_s.split '..'
        range = ((range.size == 1) ? '' : range.first)..range.last
      end

      range = id_for_ref(range.first)..range.last if range.first != ''
      range.first..id_for_ref(range.last)
    end
def parse_range(range)
      unless range.is_a? Range
        range = range.to_s.split '..'
        range = ((range.size == 1) ? '' : range.first)..range.last
      end

      range = id_for_ref(range.first)..range.last if range.first != ''
      range.first..id_for_ref(range.last)
    end
Parses a string or range of commit IDs or ref names into the coresponding
 range of unique commit IDs

 @param [String, Range] range The string that should be parsed for a range
        or an existing range
 @return [Range] The range of commit IDs parsed from the given parameter
 @see #id_for_ref