checkout: specify checkout directory if URL ends with /trunk
This commit is contained in:
parent
8a795ce265
commit
f1ed0cb50f
@ -8,6 +8,10 @@ module Svi
|
|||||||
class << self
|
class << self
|
||||||
|
|
||||||
def checkout(url)
|
def checkout(url)
|
||||||
|
checkout_directory = []
|
||||||
|
if url =~ %r{/([^/]+)/trunk$}
|
||||||
|
checkout_directory << $1
|
||||||
|
end
|
||||||
last_checkout_message = ""
|
last_checkout_message = ""
|
||||||
checked_out_paths = []
|
checked_out_paths = []
|
||||||
clear_message = lambda do
|
clear_message = lambda do
|
||||||
@ -23,7 +27,7 @@ module Svi
|
|||||||
last_checkout_message = ""
|
last_checkout_message = ""
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
SvnRunner.run_svn("checkout", [url], allow_interactive: true) do |line|
|
SvnRunner.run_svn("checkout", [url] + checkout_directory, allow_interactive: true) do |line|
|
||||||
if line =~ /^A.{4}(.*)$/
|
if line =~ /^A.{4}(.*)$/
|
||||||
path = $1
|
path = $1
|
||||||
checked_out_paths << path
|
checked_out_paths << path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user