summaryrefslogtreecommitdiff
path: root/tool/lib/vcs.rb
AgeCommit message (Collapse)Author
4 daysRe-fix `VCS::GIT#branch_beginning`Nobuyoshi Nakada
Count the last release date from the whole working directory, not only the version headers.
4 daysFix `VCS::GIT#branch_beginning` to search since the last relaseNobuyoshi Nakada
The ChangeLog in ruby-4.0.0 did not contain entries for 3.5.0.
11 days[DOC] Add `base-url` to ChangeLog by defaultNobuyoshi Nakada
It is used to expand repository references to URL.
2025-11-19Revert "[Bug #21697] Keep revision.h outside VCS"Nobuyoshi Nakada
This reverts commit 8986115e0a2a989f2b2ea5945f02c7a13989d640. `RELEASE_DATE` including `YEAR`, `MONTH`, `DAY` are mandatory, while `REVISION` is not.
2025-11-19[Bug #21697] Keep revision.h outside VCSNobuyoshi Nakada
2025-10-25[DOC] Link github style references in ChangeLogNobuyoshi Nakada
2025-09-17vcs.rb: Drop support for ruby older than 2.6Nobuyoshi Nakada
2025-06-07Skip blame-ignored revisions [ci skip]Nobuyoshi Nakada
2025-06-07Add `skip` log-fix command to skip that commit totally [ci skip]Nobuyoshi Nakada
2025-04-22Assign the result of `format_changelog` to the changelog writerNobuyoshi Nakada
Also, rename `format_changelog` to `changelog_formatter` since this method does not format the changelog when called, but rather returns a Proc that takes IO and writes the formatted changelog.
2025-04-19SVN repository is already retiredHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/13133
2025-02-17Ignore broken git work directory at creating revision.h [ci skip]Nobuyoshi Nakada
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