summaryrefslogtreecommitdiff
path: root/tool/vcs.rb
AgeCommit message (Collapse)Author
2019-07-01Alias "master" and "trunk"Nobuyoshi Nakada
2019-06-28Default @debug to $DEBUGNobuyoshi Nakada
2019-06-23vcs.rb: handle --dryrun optionNobuyoshi Nakada
2019-06-05Ignore ~/.gitconfig on tool/vcs.rb git commandsTakashi Kokubun
Because some `log.*` git configs may change the result of `git log`, `RUBY_LAST_COMMIT_TITLE` can be wrongly formatted and break version.c compilation. So the `git log` executions should not respect user's gitconfig.
2019-06-05Revert "vcs.rb support non-inplace build"Nobuyoshi Nakada
This reverts commit 22cd4027349f803efc7ede284376b7a7013f8dfe. It did not make sense due to a typo `@srcidr`.
2019-06-04tool/vcs.rb: return the commit date as the modified timeNobuyoshi Nakada
2019-06-03Default GIT external encoding to UTF-8 🤷‍♂️Nobuyoshi Nakada
And dump the title as US-ASCII.
2019-05-31Prefer the current branch or tag nameNobuyoshi Nakada
2019-05-30Fix missing `gitcmd`Nobuyoshi Nakada
2019-05-30vcs.rb support non-inplace buildNARUSE, Yui
2019-05-29Use Regexp#match instead of #match for 1.9 BASERUBY supportJeremy Evans
2019-05-29Convert Enumerator to Array for Ruby 1.9.3Takashi Kokubun
String#lines seems to return Enumerator in Ruby 1.9.3, and it does not respond to #delete_if https://travis-ci.org/ruby/ruby/jobs/538559919
2019-05-29Make tool/vcs.rb compliant to BASERUBYTakashi Kokubun
People seem to consider BASERUBY is either 1.8 or 1.9 now. Since this file may be executed by BASERUBY from file2lastrev.rb, I think we should not rely on Ruby 2.0 in this file for now.
2019-05-22Make RUBY_REVISION full lengthNobuyoshi Nakada
2019-05-22Default to the current branchNobuyoshi Nakada
* tool/make-snapshot: default to the current branch if no branch but srcdir is given.
2019-05-22Fixed the method to delegateNobuyoshi Nakada
* tool/vcs.rb (VCS::GITSVN.revision_name): should delegate to the same method of SVN, not an undefined method.
2019-05-09Fallback to an invalid branch name if no branch foundNobuyoshi Nakada
2019-05-09Search a branch name at a detached headNobuyoshi Nakada
2019-05-09Push the current (topic) branch to the remote upstreamNobuyoshi Nakada
2019-05-09Show the commit command if dryrunNobuyoshi Nakada
2019-05-09dryrun option is for `push`, not `git`Nobuyoshi Nakada
2019-05-02Fix a typoKazuhiro NISHIYAMA
2019-05-01No last commit when up-to-dateNobuyoshi Nakada
Get the last commit title from the upstream to the head, so that no `last_commit` line will be shown when the branch is up to date with the upstream.
2019-04-30`from` is not nil but `""` on shallow clone [ci skip]Kazuhiro NISHIYAMA
2019-04-29Use 10 chars as RUBY_REVISION in snapshot tooKazuhiro NISHIYAMA
2019-04-28Make the range to export as changelog optionalNobuyoshi Nakada
* `from` is defaulted to the beginning of the branch inclusively, otherwise the given revision is excluded as the previous. * `to` is defaulted to the head.
2019-04-28Added VCS::SVN#branch_beginningNobuyoshi Nakada
2019-04-28Search the beginning revision more strictly a bitNobuyoshi Nakada
2019-04-28Removed `--reverse` optionNobuyoshi Nakada
It is nonsense with `-n1` option.
2019-04-28Chomp a newline from the branch nameNobuyoshi Nakada
2019-04-28Shorten git revision name without "r" prefix in snapshotNobuyoshi Nakada
2019-04-28Reduce matz's work, let git do it insteadNobuyoshi Nakada
2019-04-27Separate format_changelogNobuyoshi Nakada
VCS::GITSVN#format_changelog generates previous format, similar to svn-log, and VCS::GIT#format_changelog stores just git-log as-is for now.
2019-04-27Override log format to parse for ChangeLogNobuyoshi Nakada
2019-04-27Include the beginning commit in ChangeLogNobuyoshi Nakada
2019-04-23Add VCS::GIT#commitNobuyoshi Nakada
2019-04-23Split git-svn dependent methodsNobuyoshi Nakada
2019-04-22Omit last_commit=RUBY_LAST_COMMIT_TITLE without local commitsKazuhiro NISHIYAMA
2019-04-22Migrate RUBY_VERSION/RUBY_DESCRIPTION to GitTakashi Kokubun
from Subversion. This behavior is tentative and not discussed well. The point of discussion will be just the length of commit hash, and I thought we should include this kind of change in 2.7.0-preview1 release even before the length is fixed yet. Let's discuss that afterwards and fix it later as needed. Naruse suggested that length=10 is very unlikely to cause conflict, and thus it's used by email notification and rubyci now. This behavior is in favor of that for now.
2018-12-10Limit uplevel travarsingnobu
* tool/vcs.rb (VCS.detect): limit level of travarsing parent directories, 0 by the default. curretly always detecting at the source directory itself. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-10Detection ordernobu
* tool/vcs.rb (VCS.detect): detect each VCS while travarsing parent directories. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-25ChangeLog compatibility [ci skip]nobu
* tool/vcs.rb (VCS::GIT#export_changelog): improve the compatibility with svn-log. remained differences are: - in svn-log - accented characters, left/right single quotation marks, and non-break spaces are translated to ASCII characters - other non-ASCII characters are excoded as `{U+XXXX}` - in git-log - tabs are expanded - in git-log (intentional) - lines looking too indented are unindented - empty lines between headers and bodies are squeezed git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-26vcs.rb: .git at exportnobu
* tool/vcs.rb (VCS::GIT#export): do not remove .git directory. should remove it by after_export. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-24On getting changelog, use git-log with --no-notesnaruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-10vcs.rb: dryrun: option of GIT::SVN#commitnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-05vcs.rb: no meaningless splatnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-05vcs.rb: for old rubynobu
* tool/vcs.rb (DebugSystem#system): pop option hash for old version ruby which does not support `system` options. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-30support ruby 1.9.3naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-30vcs.rb: checkout the current branch before rebasenobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-30vcs.rb: fix errorsnobu
* tool/vcs.rb (DebugSystem#system): fix undefined local variable error. as system doesn't accept `exception:` option before 2.6, remove it from `opts`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e