[前][次][番号順一覧][スレッド一覧]

ruby-changes:48937

From: nobu <ko1@a...>
Date: Wed, 6 Dec 2017 20:36:51 +0900 (JST)
Subject: [ruby-changes:48937] nobu:r61056 (trunk): vcs.rb: fix r61054

nobu	2017-12-06 20:36:42 +0900 (Wed, 06 Dec 2017)

  New Revision: 61056

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61056

  Log:
    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.

  Modified files:
    trunk/tool/vcs.rb
Index: tool/vcs.rb
===================================================================
--- tool/vcs.rb	(revision 61055)
+++ tool/vcs.rb	(revision 61056)
@@ -238,10 +238,10 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/vcs.rb#L238
         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]

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]