vcs.rb: fix r61054
* tool/vcs.rb (VCS::SVN.get_revisions): cmd_readd_at expects the whole arguments for IO.popen as the second argument, that is an array of command and mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
951ef1d413
commit
86f05884a5
@ -238,10 +238,10 @@ class VCS
|
||||
path = File.join(srcdir, path)
|
||||
end
|
||||
if srcdir
|
||||
info_xml = cmd_read_at(nil, %W"#{COMMAND} info --xml #{srcdir}")
|
||||
info_xml = cmd_read_at(nil, [%W"#{COMMAND} info --xml #{srcdir}"])
|
||||
info_xml = nil unless info_xml[/<url>(.*)<\/url>/, 1] == path.to_s
|
||||
end
|
||||
info_xml ||= cmd_read_at(nil, %W"#{COMMAND} info --xml #{path}")
|
||||
info_xml ||= cmd_read_at(nil, [%W"#{COMMAND} info --xml #{path}"])
|
||||
_, last, _, changed, _ = info_xml.split(/revision="(\d+)"/)
|
||||
modified = info_xml[/<date>([^<>]*)/, 1]
|
||||
branch = info_xml[%r'<relative-url>\^/(?:branches/|tags/)?([^<>]+)', 1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user