79 Commits

Author SHA1 Message Date
Takashi Kokubun
b6e7e903a0 redmine-backporter: Support matching multiple revs
with `done` command
2024-09-02 02:25:29 -07:00
Takashi Kokubun
7d47f3c94f redmine-backporter: Clarify the actual control flow
The `rev && has_commit(rev, "ruby_#{TARGET_VERSION.tr('.','_')}")`
case seems to be used if and only if it's manually specified in the
argument to the done command. It was hard to notice it with the previous
code.
2024-09-02 02:22:45 -07:00
Takashi Kokubun
0a6b1a4d9d redmine-backporter.rb: Prepend commit: to shorter revs
Some of the places in Redmine (e.g. Associated revisions) print
revisions using only 8 characters. Even when I copied a revision from
there, I want to prepend commit: in the message.
2024-06-11 11:28:04 -07:00
Hiroshi SHIBATA
f1702261d7
Suppress warnings about frozen string literal feature
```
tool/redmine-backporter.rb:69: warning: literal string will be frozen in the future
```
2024-05-30 10:32:33 +09:00
Takashi Kokubun
a760e21bc1 Sort backport revisions by commit timestamps 2024-05-29 10:39:32 -07:00
Takashi Kokubun
7e95efdafa redmine-backporter.rb: Prepend commit: to every revision 2024-05-28 17:17:16 -07:00
Takashi Kokubun
d0cde43a33 redmine-backporter.rb: Remove an unneeded space
from #backport_command_string

I don't want to leave unneeded spaces in the command history by
copy-pasting the entire line.
2024-05-28 17:00:47 -07:00
Takashi Kokubun
b0ebad51e5 merger.rb: Use commit: prefix in more places 2024-05-28 14:28:50 -07:00
Takashi Kokubun
7873275326 redmine-backporter.rb: Use commit: prefix 2024-05-28 13:37:53 -07:00
Takashi Kokubun
13307cd944 redmine-backporter.rb: Highlight closed tickets 2024-05-28 11:46:15 -07:00
Takashi Kokubun
2608f2a23b redmine-backporter.rb: Fix #color for Ruby 3 splat
color(*PRIORITIES['Immediate']) didn't work with Ruby 3.
2024-05-28 11:41:31 -07:00
Takashi Kokubun
3f256dc66a redmine-backporter.rb: Drop SVN support 2024-05-28 10:47:51 -07:00
Takashi Kokubun
450e9d2495 redmine-backporter.rb: Migrate Readline to Reline
instead of using a local Readline port as a fallback
2024-05-28 10:42:47 -07:00
Takashi Kokubun
db7c385897 redmine-backporter.rb: Get rid of VERSION
that has never been utilized
2024-05-28 10:39:39 -07:00
Takashi Kokubun
e5759e4126 redmine-backporter.rb: Print help on wrong usage 2024-05-28 10:34:16 -07:00
NARUSE, Yui
269c5d408f fix to work with the case default issue is used 2023-02-01 22:49:54 +09:00
NARUSE, Yui
b0b61623ad Add quotes to backport field 2023-01-31 10:53:57 +09:00
NARUSE, Yui
f92b7b7b97 Pass revision by hand if the commit message lacks the ticket number 2021-02-02 19:15:45 +09:00
NARUSE, Yui
d29cb56bfa Use local repository instead of remote
to improve performance
2021-02-02 19:14:37 +09:00
NARUSE, Yui
de15a26e9e tool/redmine-backporter.rb: fix typo 2020-03-13 22:27:54 +09:00
Takashi Kokubun
afd3f64f8c
Redmine /projects/ruby-trunk is now redirected
to /projects/ruby-master
2019-12-31 22:06:19 -08:00
Nobuyoshi Nakada
db16629008
Fixed misspellings
Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
2019-12-20 09:32:42 +09:00
nagachika
17e6536fe0 tool/redmine-backporter.rb: Change redmine git revisions URL path. 2019-06-16 11:59:59 +09:00
nagachika
ee7999bb84 tool/redmine-backporter.rb: Add parens to fix condition for svn revision search. 2019-06-16 11:39:12 +09:00
NAKAMURA Usaku
dd942cd5b3
Use redirect keyword arguments instead of ">" 2019-04-30 22:24:45 +09:00
NAKAMURA Usaku
1dd94dfba3
Must use IO::NULL instead of platform dependent filename 2019-04-30 21:51:03 +09:00
Takashi Kokubun
4d8ad48f7d
Support git as redmine-backporter's done destination 2019-04-28 20:17:20 +09:00
k0kubun
b6fd7b1bb7 tool/redmine-backporter.rb: Git support in backport/rel
close https://github.com/ruby/ruby/pull/2138

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-21 14:24:38 +00:00
k0kubun
c7db05d216 tool/redmine-backporter.rb: Remove unused methods
They seem to have never been used from the beginning (r45081).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-21 13:05:32 +00:00
nagachika
ad10418eab update redmine-backporter to catch up Redmine 4.0. [ci skip]
tool/redmine-backporter.rb: change revision resource URL.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-14 11:04:52 +00:00
usa
5bf3db3efb get rid of an encode noncompatible error
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-13 12:42:55 +00:00
nobu
36bc8c0b28 tool: removed unused variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-05-18 00:38:00 +00:00
nobu
2b7bde7eff redmine-backporter.rb: suppress a warning [ci skip]
* tool/redmine-backporter.rb (StringScanner.readline): use `true`
  to suppress a "literal in condition" warning.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-05-18 00:37:59 +00:00
usa
b88e0ceb85 * tool/redmine-backporter.rb (show): just report and ignore if a feature ticket
is specified instead of aborting.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-07-07 02:14:57 +00:00
naruse
0256fa8890 Didn't work if backport field is empty
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-03-12 18:31:38 +00:00
nagachika
6feb1684f3 fix a constant name typo in redmine-backporter.rb
[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-11 15:43:43 +00:00
usa
34ef129bd2 * tool/redmine-backporter.rb (rel): check the exception and show right
message.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-27 07:34:32 +00:00
usa
020bd9f487 * tool/redmine-backporter.rb: fixed command alias bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-07-06 16:05:57 +00:00
usa
95f3abf34a * tool/redmine-backporter.rb (rel): should not raise exceptions even if
the user input is wrong.  only reports the error and continue process.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-26 14:43:50 +00:00
usa
219f68abfe * tool/redmine-backporter.rb: the fullpath of merger.rb is too long to
copy&paste on Windows.  show shorter name instead on the platform.
  I'm sure that the user of this command on Windows is only me.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-22 06:07:19 +00:00
nagachika
531514bac2 * tool/redmine-backporter.rb: revisions are strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-16 19:20:11 +00:00
nagachika
25c0a2d3ad * tool/redmine-backporter.rb: sort revisions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-15 16:34:22 +00:00
naruse
c2b4b9bb47 * tool/redmine-backporter.rb: add given revision to current changests
on associating the revision to the related ticket.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-03-29 16:55:55 +00:00
naruse
c782c791b2 * tool/redmine-backporter.rb (backport): show merger.rb's path.
* tool/redmine-backporter.rb (show): show current issue again if no
  ticket number is given.

* tool/redmine-backporter.rb (rel): show error message if current
  bugs.ruby-lang.org doesn't support the API.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-03-29 09:59:27 +00:00
usa
19f7dd85c4 * tool/redmine-backporter.rb (rel): after the relations is changed,
@changesets is no longer right.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-25 13:38:00 +00:00
usa
cef3b0a890 * tool/redmine-backporter.rb (done): fixed a bug that cannot specify the note
without the ticket number.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-13 08:25:34 +00:00
usa
8ea6b7a137 * tool/redmine-backporter.rb: now doesn't required spaces just after
`!`.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-24 07:49:02 +00:00
usa
bca791ae60 * tool/redmine-backporter.rb (backport_command_string): pick up only
when the revision exists in trunk.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03 17:14:22 +00:00
usa
6aff861d60 * tool/redmine-backporter.rb: now can specify shorten form of commands.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03 15:30:54 +00:00
usa
d1d5264c6c * tool/redmine-backporter.rb (Readline.readline): drop untreated control
characters.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03 14:42:15 +00:00