From d72bd190a80e6b8258ca923b606175754a210b6d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 28 Apr 2019 12:11:59 +0900 Subject: Added VCS::SVN#branch_beginning --- tool/vcs.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tool/vcs.rb') diff --git a/tool/vcs.rb b/tool/vcs.rb index 5ba8ce2606..7dadada494 100644 --- a/tool/vcs.rb +++ b/tool/vcs.rb @@ -345,6 +345,15 @@ class VCS FileUtils.rm_rf(dir+"/.svn") end + def branch_beginning(url) + # `--limit` of svn-log is useless in this case, because it is + # applied before `--search`. + rev = IO.pread(%W[ #{COMMAND} log --xml + --search=matz --search-and=has\ started + -- #{url}/version.h])[/ 'JST-9', 'LANG' => 'C', 'LC_ALL' => 'C'}, @@ -465,7 +474,7 @@ class VCS FileUtils.rm_rf(Dir.glob("#{dir}/.git*")) end - def branch_beginning + def branch_beginning(url) cmd_read(%W[ #{COMMAND} log -n1 --format=format:%H --author=matz --committer=matz --grep=has\ started -- version.h include/ruby/version.h]) -- cgit v1.2.3