aboutsummaryrefslogtreecommitdiffstats
path: root/tool/lib/vcs.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use `File::NULL` instead of hard coded null device namesNobuyoshi Nakada2023-07-101-2/+1
|
* Apply zone offset to the last modified timeNobuyoshi Nakada2023-02-131-0/+1
|
* vcs.rb: do not reference the constant before assignmentNobuyoshi Nakada2022-11-011-3/+3
|
* vcs.rb: copy safe directory configurationNobuyoshi Nakada2022-10-301-5/+42
| | | | | | | 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.
* vcs.rb: prettify debug printNobuyoshi Nakada2022-10-301-10/+27
|
* Add `--zone` option to `VCS`Nobuyoshi Nakada2022-09-301-1/+3
| | | | Which controls the timezone offset for `RUBY_RELEASE_DATE`.
* Introduce `VCS::Null` for fallbackNobuyoshi Nakada2022-09-301-2/+13
|
* Check for the availability of the command when detectingNobuyoshi Nakada2022-09-301-0/+3
|
* Pull up `VCS.short_revision` from `VCS::SVN`Nobuyoshi Nakada2022-09-301-4/+4
|
* Remove git command existence check againTakashi Kokubun2022-09-171-4/+1
| | | | | | | | | | | | | | | | | | | 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 ```
* Fallback to VCS.release_date on VCS::NotFoundErrorTakashi Kokubun2022-09-171-1/+1
| | | | | | | | | | | | | | | | | | | | 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.
* Auto-generate the release date on version.h from git CommitDate (#6382)Takashi Kokubun2022-09-171-4/+18
| | | | | | | * Auto-generate the release date on version.h from git CommitDate * Generate revision.h on mswin
* Replace "Fixes"/"Fixed" in commit logs as well as vcs.rb [ci skip]Nobuyoshi Nakada2022-09-141-1/+1
| | | | | Use the same regexp to replace "(#NNNN)" and "GH-NNNN" style references in vcs.rb, too.
* VCS#revision_header: Make arguments optionalNobuyoshi Nakada2022-09-011-2/+2
|
* Update revision.h in packages using `VCS#revision_header`Nobuyoshi Nakada2022-09-011-2/+2
|
* Extract `VCS#revision_header`Nobuyoshi Nakada2022-09-011-0/+28
|
* vcs.rb: ignore configuration files get rid of aliases [ci skip]Nobuyoshi Nakada2022-06-221-2/+5
|
* vcs.rb: just one log to check if `--date` option works [ci skip]Nobuyoshi Nakada2022-06-221-1/+1
|
* vcs.rb: show diagnostic/progressing messages when debugging [ci skip]Nobuyoshi Nakada2022-06-221-1/+1
|
* Expand upstream issue numbers to URLs in ChangeLogNobuyoshi Nakada2021-09-041-0/+6
|
* Add some punctuations as regexp separators to fix commit logsNobuyoshi Nakada2021-09-031-7/+12
|
* Prepend DebugSystem to VCS class onlyNobuyoshi Nakada2021-07-261-3/+0
| | | | | And revert 24e5f1c982966c379220b1bbb26b4e0320180fa1, pepending to Kernel did not affect the top level methods before 3.0.
* vcs.rb: update the given option to VCS.detect by keyword argumentsNobuyoshi Nakada2021-02-081-1/+2
|
* vcs.rb: added `base_url` keyword option to GIT#export_changelogNobuyoshi Nakada2021-02-081-3/+14
|
* vcs.rb: improved export_changelogNobuyoshi Nakada2021-02-081-7/+13
| | | | | | * arguments are optional * `path` may be passed as a keyword argument * `nil` or `"-"` path means stdout
* vcs.rb: fix for baseruby 2.2Nobuyoshi Nakada2021-01-261-1/+2
|
* vcs.rb: support `d` command in log-fixNobuyoshi Nakada2021-01-261-0/+3
|
* vcs.rb: allow log-fix to insert an empty lineNobuyoshi Nakada2021-01-261-1/+1
|
* vcs.rb: continue just with warning if failed to fetch notesNobuyoshi Nakada2021-01-231-4/+5
|
* vcs.rb: include commit info in ChangeLogNobuyoshi Nakada2021-01-231-2/+2
|
* Support `i` command in log-fixNobuyoshi Nakada2021-01-211-1/+4
|
* Follow up on variations of the development start messages [ci skip]Nobuyoshi Nakada2020-12-251-1/+1
|
* Show messages around the line when replacing failed in format_changelogKazuhiro NISHIYAMA2020-07-101-1/+13
|
* Remove Ruby <2.2 support from tool/lib/vcs.rbJeremy Evans2020-05-281-93/+27
| | | | | BASERUBY now requires at least Ruby 2.2, so there is no point trying to support older ruby versions here.
* Specify explicit separator not to be affected by $;Nobuyoshi Nakada2020-03-081-1/+1
|
* Indent ChangeLog contents [ci skip]Nobuyoshi Nakada2020-02-011-3/+5
| | | | | Separate each entries more obviously as `page-delimiter' works fine.
* Explicitly set the encoding of ChangeLog file to UTF-8 [ci skip]Nobuyoshi Nakada2020-02-011-0/+1
|
* vcs.rb: Allow to empty a part in commit logNobuyoshi Nakada2020-01-121-1/+1
|
* vcs.rb: Get rid of Kernel#openNobuyoshi Nakada2020-01-091-4/+2
|
* Fix typo in commit logs by log-fix notesNobuyoshi Nakada2019-12-231-2/+22
|
* make-snapshot: Regexp#match raises on nil nowNobuyoshi Nakada2019-10-221-1/+1
|
* vcs.rb: fix to export git-svn versionNobuyoshi Nakada2019-10-031-26/+32
| | | | | | * Use the given branch name instead of implicit 'HEAD". * Format like as git-svn when `from` or `to` is SVN revision number.
* Try to fetch commits notes to the source tree automaticallyNobuyoshi Nakada2019-09-151-4/+3
| | | | [Bug #16167]
* make-snapshot: no merge commits in ChangeLogNobuyoshi Nakada2019-09-151-1/+1
| | | | | | Parents commit hashs in logs of merge commits are abbreviated to necessary length depending on the repositories. Exclude merge commits from ChangeLog to make it stable.
* make-snapshot: export ChangeLog from srcdirNobuyoshi Nakada2019-09-151-3/+0
|
* Continue to export even if no notes/commitsNobuyoshi Nakada2019-09-141-1/+3
| | | | | Just exporting may not imply exporting ChangeLog which needs notes/commits. [Bug #16167]
* Suppress detached head warningNobuyoshi Nakada2019-09-081-1/+1
|
* Fix error when checking file modified with git-svnNobuyoshi Nakada2019-09-071-1/+2
|
* Use `git describe --contains` for tagsNobuyoshi Nakada2019-09-071-1/+1
|
* Added more debug outputs from VCS::GITNobuyoshi Nakada2019-09-071-1/+4
|