summaryrefslogtreecommitdiff
path: root/tool/lib/vcs.rb
AgeCommit message (Collapse)Author
2024-05-09Revert "Update revision.h if branch unmatch not only revision"Nobuyoshi Nakada
This reverts commit 5a332940ed2f809cb17af7e4d068089b6e1fa6ca. Something does not work well on Github Actions.
2024-05-08Update revision.h if branch unmatch not only revision [ci skip]Nobuyoshi Nakada
2024-02-25Exclude `.mailmap` from snapshots [ci skip]Nobuyoshi Nakada
It is only for old commits, useless without full repository logs.
2023-12-28Exclude [ci skip] commits from ChangeLogNobuyoshi Nakada
2023-12-28Exclude dependabot from ChangeLog [ci skip]Nobuyoshi Nakada
2023-10-03Support regexp in log-fix [ci skip]Nobuyoshi Nakada
2023-09-23Improve VCS::GIT#format_changelog addessing [ci skip]Nobuyoshi Nakada
2023-07-10Use `File::NULL` instead of hard coded null device namesNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8050
2023-02-13Apply zone offset to the last modified timeNobuyoshi Nakada
2022-11-01vcs.rb: do not reference the constant before assignmentNobuyoshi Nakada
2022-10-30vcs.rb: copy safe directory configurationNobuyoshi Nakada
Now revision.tmp will be regenerated always and every times, even if the recent file exists in the source directory, as far as using git. On the other hand, VirtualBox mounts shared folders as root, and git rejects the repository there as dubious ownership. Notes: Merged: https://github.com/ruby/ruby/pull/6647
2022-10-30vcs.rb: prettify debug printNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6647
2022-09-30Add `--zone` option to `VCS`Nobuyoshi Nakada
Which controls the timezone offset for `RUBY_RELEASE_DATE`. Notes: Merged: https://github.com/ruby/ruby/pull/6473
2022-09-30Introduce `VCS::Null` for fallbackNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6473
2022-09-30Check for the availability of the command when detectingNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6473
2022-09-30Pull up `VCS.short_revision` from `VCS::SVN`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6473
2022-09-17Remove git command existence check againTakashi Kokubun
With 33c6dd2cc89c27bbf406508ec39038a181fb99bc, it's no longer necessary. This is what I got on openbsd-current: ``` -bash-5.1$ git -v unknown option: -v usage: git [--version] [--help] [-C <path>] [-c <name>=<value>] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] [--super-prefix=<path>] [--config-env=<name>=<envvar>] <command> [<args>] -bash-5.1$ git version git version 2.35.1 ```
2022-09-17Fallback to VCS.release_date on VCS::NotFoundErrorTakashi Kokubun
when -q is given. One of the RubyCI servers, freebsd12, had a broken git environment: ``` $ git show fatal: detected dubious ownership in repository at '/usr/home/chkbuild/chkbuild/tmp/build/20220917T123002Z/ruby' To add an exception for this directory, call: git config --global --add safe.directory /usr/home/chkbuild/chkbuild/tmp/build/20220917T123002Z/ruby ``` tool/lib/vcs.rb doesn't work normally for that server. Even for such cases, we'd like to generate a usable revision.h. So this patch lets revision.h fallback to default VCS.release_date when VCS::NotFoundError is raised.
2022-09-17Auto-generate the release date on version.h from git CommitDate (#6382)Takashi Kokubun
* Auto-generate the release date on version.h from git CommitDate * Generate revision.h on mswin Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2022-09-14Replace "Fixes"/"Fixed" in commit logs as well as vcs.rb [ci skip]Nobuyoshi Nakada
Use the same regexp to replace "(#NNNN)" and "GH-NNNN" style references in vcs.rb, too.
2022-09-01VCS#revision_header: Make arguments optionalNobuyoshi Nakada
2022-09-01Update revision.h in packages using `VCS#revision_header`Nobuyoshi Nakada
2022-09-01Extract `VCS#revision_header`Nobuyoshi Nakada
2022-06-22vcs.rb: ignore configuration files get rid of aliases [ci skip]Nobuyoshi Nakada
2022-06-22vcs.rb: just one log to check if `--date` option works [ci skip]Nobuyoshi Nakada
2022-06-22vcs.rb: show diagnostic/progressing messages when debugging [ci skip]Nobuyoshi Nakada
2021-09-04Expand upstream issue numbers to URLs in ChangeLogNobuyoshi Nakada
2021-09-03Add some punctuations as regexp separators to fix commit logsNobuyoshi Nakada
2021-07-26Prepend DebugSystem to VCS class onlyNobuyoshi Nakada
And revert 24e5f1c982966c379220b1bbb26b4e0320180fa1, pepending to Kernel did not affect the top level methods before 3.0.
2021-02-08vcs.rb: update the given option to VCS.detect by keyword argumentsNobuyoshi Nakada
2021-02-08vcs.rb: added `base_url` keyword option to GIT#export_changelogNobuyoshi Nakada
2021-02-08vcs.rb: improved export_changelogNobuyoshi Nakada
* arguments are optional * `path` may be passed as a keyword argument * `nil` or `"-"` path means stdout
2021-01-26vcs.rb: fix for baseruby 2.2Nobuyoshi Nakada
2021-01-26vcs.rb: support `d` command in log-fixNobuyoshi Nakada
2021-01-26vcs.rb: allow log-fix to insert an empty lineNobuyoshi Nakada
2021-01-23vcs.rb: continue just with warning if failed to fetch notesNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4109
2021-01-23vcs.rb: include commit info in ChangeLogNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4109
2021-01-21Support `i` command in log-fixNobuyoshi Nakada
2020-12-25Follow up on variations of the development start messages [ci skip]Nobuyoshi Nakada
2020-07-10Show messages around the line when replacing failed in format_changelogKazuhiro NISHIYAMA
2020-05-28Remove Ruby <2.2 support from tool/lib/vcs.rbJeremy Evans
BASERUBY now requires at least Ruby 2.2, so there is no point trying to support older ruby versions here. Notes: Merged: https://github.com/ruby/ruby/pull/2947
2020-03-08Specify explicit separator not to be affected by $;Nobuyoshi Nakada
2020-02-01Indent ChangeLog contents [ci skip]Nobuyoshi Nakada
Separate each entries more obviously as `page-delimiter' works fine.
2020-02-01Explicitly set the encoding of ChangeLog file to UTF-8 [ci skip]Nobuyoshi Nakada
2020-01-12vcs.rb: Allow to empty a part in commit logNobuyoshi Nakada
2020-01-09vcs.rb: Get rid of Kernel#openNobuyoshi Nakada
2019-12-23Fix typo in commit logs by log-fix notesNobuyoshi Nakada
2019-10-22make-snapshot: Regexp#match raises on nil nowNobuyoshi Nakada
2019-10-03vcs.rb: fix to export git-svn versionNobuyoshi Nakada
* Use the given branch name instead of implicit 'HEAD". * Format like as git-svn when `from` or `to` is SVN revision number.
2019-09-15Try to fetch commits notes to the source tree automaticallyNobuyoshi Nakada
[Bug #16167]