mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/vcs.rb: fix the exception given remote-url of svn.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
76d0574181
commit
6c68a3edfa
2 changed files with 13 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Tue Jan 20 22:59:54 2015 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||||
|
|
||||||
|
* tool/vcs.rb: fix the exception given remote-url of svn.
|
||||||
|
|
||||||
Tue Jan 20 12:58:33 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
Tue Jan 20 12:58:33 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* tool/redmine-backporter.rb: now can change the page of `ls`.
|
* tool/redmine-backporter.rb: now can change the page of `ls`.
|
||||||
|
|
15
tool/vcs.rb
15
tool/vcs.rb
|
@ -161,13 +161,16 @@ class VCS
|
||||||
info = get_info
|
info = get_info
|
||||||
@wcroot = info[/<wcroot-abspath>(.*)<\/wcroot-abspath>/, 1]
|
@wcroot = info[/<wcroot-abspath>(.*)<\/wcroot-abspath>/, 1]
|
||||||
unless @wcroot
|
unless @wcroot
|
||||||
parent = File.realpath(@srcdir)
|
|
||||||
begin
|
begin
|
||||||
parent = File.dirname(wkdir = parent)
|
parent = File.realpath(@srcdir)
|
||||||
if File.directory?(wkdir + "/.svn")
|
begin
|
||||||
break @wcroot = wkdir
|
parent = File.dirname(wkdir = parent)
|
||||||
end
|
if File.directory?(wkdir + "/.svn")
|
||||||
end until parent == wkdir
|
break @wcroot = wkdir
|
||||||
|
end
|
||||||
|
end until parent == wkdir
|
||||||
|
rescue TypeError
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@wcroot
|
@wcroot
|
||||||
|
|
Loading…
Reference in a new issue