* tool/redmine-backporter.rb (find_svn_log): use double quotes instead
of single quotes because cmd.exe doesn't handle them. * tool/redmine-backporter.rb (done): the 2nd element of matched data is the offset of the end of matched string, not length. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8341ca059a
commit
aa56ab4ac4
@ -1,3 +1,11 @@
|
|||||||
|
Thu Jan 22 18:03:19 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* tool/redmine-backporter.rb (find_svn_log): use double quotes instead
|
||||||
|
of single quotes because cmd.exe doesn't handle them.
|
||||||
|
|
||||||
|
* tool/redmine-backporter.rb (done): the 2nd element of matched data
|
||||||
|
is the offset of the end of matched string, not length.
|
||||||
|
|
||||||
Thu Jan 22 16:45:24 2015 Eric Wong <e@80x24.org>
|
Thu Jan 22 16:45:24 2015 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
* st.c (st_numhash): mix float value for flonum
|
* st.c (st_numhash): mix float value for flonum
|
||||||
|
@ -238,7 +238,7 @@ def mergeinfo
|
|||||||
end
|
end
|
||||||
|
|
||||||
def find_svn_log(pattern)
|
def find_svn_log(pattern)
|
||||||
`svn log --xml --stop-on-copy --search='#{pattern}' #{RUBY_REPO_PATH}`
|
`svn log --xml --stop-on-copy --search="#{pattern}" #{RUBY_REPO_PATH}`
|
||||||
end
|
end
|
||||||
|
|
||||||
def show_last_journal(http, uri)
|
def show_last_journal(http, uri)
|
||||||
@ -389,7 +389,7 @@ eom
|
|||||||
if h and val = h["value"]
|
if h and val = h["value"]
|
||||||
case val[/(?:\A|, )#{Regexp.quote TARGET_VERSION}: ([^,]+)/, 1]
|
case val[/(?:\A|, )#{Regexp.quote TARGET_VERSION}: ([^,]+)/, 1]
|
||||||
when 'REQUIRED', 'UNKNOWN', 'DONTNEED', 'WONTFIX'
|
when 'REQUIRED', 'UNKNOWN', 'DONTNEED', 'WONTFIX'
|
||||||
val[*$~.offset(1)] = 'DONE'
|
val[$~.offset(1)[0]...$~.offset(1)[1]] = 'DONE'
|
||||||
when 'DONE' # , /\A\d+\z/
|
when 'DONE' # , /\A\d+\z/
|
||||||
puts 'already backport is done'
|
puts 'already backport is done'
|
||||||
next # already done
|
next # already done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user