aboutsummaryrefslogtreecommitdiffstats
path: root/tool/vcs.rb
Commit message (Collapse)AuthorAgeFilesLines
* improve git repository detectionfix/git-worktree-detectionKazuki Yamaguchi2016-04-011-8/+4
| | | | | | | | | | | | * configure.in (AC_CONFIG_FILES): $srcdir/.git can be a file pointing the real git_dir, such as when the git working tree is a "linked working tree" (a working tree created by git-worktree). So use git-rev-parse --git-dir to check if $srcdir is the top-level of a git repository, not just checking if the $srcdir/.git directory does exist or not. * tool/change_maker.rb: use tool/vcs.rb to detect VCS. This used to have its own VCS detection code, while we have tool/vcs.rb. * tool/vcs.rb (detect): remove code duplication
* vcs.rb: git worktreenobu2016-01-201-5/+7
| | | | | | | * tool/vcs.rb (VCS.detect, VCS::GIT): support working directory created by `git worktree`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: srcdir accessornobu2016-01-091-0/+2
| | | | | | * tool/vcs.rb (VCS#srcdir): add accessor for VCS::GIT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/vcs.rb (IO.popen): Refactor. Avoid assigning in condition.sorah2015-12-241-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/vcs.rb (IO.popen): Enable on Ruby 1.9 where chdir option is notsorah2015-12-241-3/+3
| | | | | | | | | supported on IO.popen * tool/vcs.rb (IO.popen): Fix NoMethodError. I guess r49705 was not tested... :/ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: update-man-datenobu2015-05-231-0/+5
| | | | | | | | * common.mk (update-man-date): update last date in man pages. * tool/vcs.rb (VCS#modified): returns last modified time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: do not use -C for older gitnobu2015-02-231-17/+33
| | | | | | | | | * tool/vcs.rb (IO.popen): support :chdir option. * tool/vcs.rb (VCS::GIT.get_revisions): use :chdir option instead of -C option which is not supported by older git. [ruby-dev:48880] [Bug #10890] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* version.c: last commit titlenobu2015-02-181-1/+4
| | | | | | | * version.c (ruby_show_version): show last commit title, if different than the trunk. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: refactornobu2015-02-181-6/+4
| | | | | | * tool/vcs.rb (VCS::GIT.get_revisions): refactor git -C option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: include svn property commitsnobu2015-01-271-1/+3
| | | | | | | * tool/vcs.rb (VCS::GIT.get_revisions): omit "." to include svn property only commits. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: fix after_exportnobu2015-01-231-2/+2
| | | | | | * tool/vcs.rb (VCS#after_export): fix nesting. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* make-snapshot: make revision.h by makenobu2015-01-201-4/+15
| | | | | | | * tool/make-snapshot (package): keep VCS management files until prerequisites build, so that revision.h can be made by make. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: fix for local svnnobu2015-01-201-14/+16
| | | | | | | | | | * tool/vcs.rb (VCS.local_path?): predicate that the argument is a local path. * tool/vcs.rb (VCS::SVN.search_root): extract a method to search working root directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/vcs.rb: fix the exception given remote-url of svn.hsbt2015-01-201-6/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: search svn directorynobu2015-01-181-1/+7
| | | | | | | * tool/vcs.rb (VCS::SVN#wcroot): search svn directory by traversing parent directories for old svn. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: debugnobu2015-01-181-1/+8
| | | | | | * tool/vcs.rb (VCS::SVN#wcroot): debug info. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: workaroundnobu2015-01-181-2/+2
| | | | | | | * tool/vcs.rb (VCS::SVN#export): workaround for the case wcroot-abspath is not present. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: export without remote svnnobu2015-01-181-3/+39
| | | | | | | * tool/vcs.rb (VCS::SVN#export): export without access to the remote server. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: no empty namesnobu2015-01-171-2/+2
| | | | | | * tool/vcs.rb (get_revisions): branch names must not be empty. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* version.h: include branch namenobu2015-01-171-2/+7
| | | | | | | | | | * tool/file2lastrev.rb, tool/vcs.rb (get_revisions): define RUBY_BRANCH_NAME from the current branch name. * version.h (RUBY_REVISION_STR): include the current branch name not "trunk" always. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: fake string for branch namesnobu2015-01-171-1/+3
| | | | | | | * tool/vcs.rb (VCS::GIT#branch): make fake string for branch names to suppress expanding as a path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* make-snapshot: fix stable snapshotnobu2014-12-231-3/+10
| | | | | | | | | | | | * tool/make-snapshot (package): VCS#branch_list expects glob a pattern string but not a regexp. based on the patch by Vit Ondruch. in [ruby-core:67064]. [Bug #10636] * tool/vcs.rb (VCS::SVN#branch_list): strip newlines. * tool/vcs.rb (VCS::GIT.get_revisions): retrieve modified time from toplevel log too. * tool/vcs.rb (VCS::GIT#branch_list): yield for each lines. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/vcs.rb: fix Ruby 1.8 compatibility hardernormal2014-12-161-1/+3
| | | | | | Arguments after splat do not work under 1.8, either. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/vcs.rb: fix Ruby 1.8 compatibilitynormal2014-12-151-1/+2
| | | | | | Symbol#to_proc is not standard in Ruby 1.8 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* VCS::SVN#url was buggy and recent commits exposed itnaruse2014-12-151-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: abstractnobu2014-12-151-0/+88
| | | | | | * tool/vcs.rb: abstract VCS interfaces from make-snapshot. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: non-string pathnobu2014-12-151-3/+5
| | | | | | | * tool/vcs.rb (VCS#get_revisions, VCS::SVN.get_revisions): allow path to be other than a string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: IO.preadnobu2014-12-151-4/+35
| | | | | | | * tool/vcs.rb (IO.pread): method to read command output without shell. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: srcdir parameternobu2014-12-131-6/+9
| | | | | | | | * tool/vcs.rb (VCS#get_revisions): add srcdir optional parameter to SVN.get_revisions and GIT.get_revisions, instead of change working directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: make Time with proper offsetnobu2014-11-251-1/+5
| | | | | | | | * tool/vcs.rb (get_revisions): use Time.new instead of Time.mktime which does not accept UTC offset, and offset manually for older versions than 1.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/vcs.rb: no time.rbnobu2014-08-221-5/+7
| | | | | | | * common.mk (Doxyfile): revert r43888, not to require preinstalled ruby. [ruby-core:64488] [Bug #10161] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/vcs.rb: discard error messagesnobu2014-02-281-14/+18
| | | | | | | * tool/vcs.rb (VCS#get_revisions): discard error messages for all VCS not only SVN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rbinstall.rb: fix for non-working directorynobu2013-11-091-2/+2
| | | | | | | | * tool/rbinstall.rb (Gem::Specification.last_date): skip if failed to get info from VCS, for example, in the case circumstance sharing working directory with another machine and run vcs tools cannot work. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rbinstall.rb: spec date from VCSnobu2013-11-091-5/+15
| | | | | | | | * tool/rbinstall.rb (Gem::Specification.load): obtain spec date from VCS for the case using git, RUBY_RELEASE_DATE is the last resort. probably fixes [Bug #9085]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: splitnobu2013-11-091-0/+102
* tool/vcs.rb: split from file2lastrev.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e