ruby-changes:37237
From: nobu <ko1@a...>
Date: Sun, 18 Jan 2015 14:24:27 +0900 (JST)
Subject: [ruby-changes:37237] nobu:r49318 (trunk): vcs.rb: workaround
nobu 2015-01-18 14:24:14 +0900 (Sun, 18 Jan 2015) New Revision: 49318 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49318 Log: vcs.rb: workaround * tool/vcs.rb (VCS::SVN#export): workaround for the case wcroot-abspath is not present. Modified files: trunk/tool/vcs.rb Index: tool/vcs.rb =================================================================== --- tool/vcs.rb (revision 49317) +++ tool/vcs.rb (revision 49318) @@ -195,9 +195,9 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/vcs.rb#L195 end def export(revision, url, dir) - if @srcdir + if @srcdir and (rootdir = wcroot) srcdir = File.realpath(@srcdir) - rootdir = wcroot+"/" + rootdir << "/" if srcdir.start_with?(rootdir) subdir = srcdir[rootdir.size..-1] subdir = nil if subdir.empty? -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/