- if line =~ SVN_INFO_PATTERN
- property = Regexp.last_match[1]
- value = Regexp.last_match[2]
- attrs[property] = value
- else
- fail "Could not parse `svn info` data: #{line}"
- end
+ raise "Could not parse `svn info` data: #{line}" unless line =~ SVN_INFO_PATTERN
+
+ property = Regexp.last_match[1]
+ value = Regexp.last_match[2]
+ attrs[property] = value