Go MAEDA
18909613f0
Ensure Mercurial uses Python >= 3.5 ( #33784 ).
...
Redmine no longer supports Python 2.7.
Mercurial does not support Python 3.0 to 3.4.
Patch by Go MAEDA (user:maeda).
git-svn-id: https://svn.redmine.org/redmine/trunk@23687 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-20 02:22:18 +00:00
Go MAEDA
7ff2e37c46
Update Mercurial repository support to be compatible with Python 3 and remove support for Mercurial < 5.1 ( #33784 ).
...
Patch by Harald Klimach (user:haraldkl), Olivier Houdas (user:olivier.houdas@geoconcept.com ), Jakob Haufe (user:sur5r), and Sean Baggaley (user:NotTheActualSean).
git-svn-id: https://svn.redmine.org/redmine/trunk@23513 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-02-16 08:43:24 +00:00
Go MAEDA
2fe36c4128
Fix RuboCop offense Style/RedundantInterpolationUnfreeze ( #39887 ).
...
Since interpolated strings are always unfrozen in Ruby 3.0 and later, the use of `+""` is now redundant.
git-svn-id: https://svn.redmine.org/redmine/trunk@23001 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-09-01 00:38:01 +00:00
Go MAEDA
93645a279e
Use anonymous block forwarding introduced in Ruby 3.1 ( #38585 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22973 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-21 00:46:15 +00:00
Go MAEDA
6e21ae7209
Fix RuboCop offense Layout/SpaceAfterComma, one of the offenses enabled in rubocop-rails-omakase ( #39887 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22953 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-12 08:36:05 +00:00
Go MAEDA
b224d878c3
Remove commented-out dead code and fix RuboCop offense Layout/LeadingCommentSpace ( #39887 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22952 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-12 08:11:12 +00:00
Go MAEDA
de76bb3a4a
Fix RuboCop offense Layout/EmptyLinesAroundClassBody, one of the offenses enabled in rubocop-rails-omakase ( #39887 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22949 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-12 07:42:12 +00:00
Marius Balteanu
38d950df55
Remove current year from source file copyright headers and update year in footer to 2024 ( #40043 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-26 22:55:54 +00:00
Go MAEDA
61e223f698
Fix RuntimeError on reload! in the Rails console ( #38155 ).
...
Patch by Thomas Löber (@tloeber).
git-svn-id: https://svn.redmine.org/redmine/trunk@22681 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-05 13:39:02 +00:00
Go MAEDA
ed0644d151
Fix ScmData.binary? method not to consider UTF-8 text as binary ( #40020 ).
...
Patch by Go MAEDA (@maeda).
git-svn-id: https://svn.redmine.org/redmine/trunk@22664 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-30 01:41:38 +00:00
Go MAEDA
5b77092be4
Replace regular expression matches with String#start_with? / end_with? ( #40010 ).
...
Patch by Go MAEDA (@maeda).
git-svn-id: https://svn.redmine.org/redmine/trunk@22605 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-11 11:27:25 +00:00
Marius Balteanu
8a1bff856f
Add missing copyrights ( #37730 ).
...
Patch by Karel Pičman.
git-svn-id: https://svn.redmine.org/redmine/trunk@22482 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-11-26 14:07:17 +00:00
Marius Balteanu
b7a190399f
Remove deprecated methods in Repository and AbstractAdapter ( #39558 ).
...
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22457 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-11-18 12:58:19 +00:00
Go MAEDA
e0e751f5bc
Fix RuboCop offense Style/RedundantRegexpArgument ( #36919 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22262 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-06-29 00:39:58 +00:00
Go MAEDA
f41afc7e72
Fix RuboCop offense Style/RedundantArrayConstructor ( #36919 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22252 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-06-07 12:39:40 +00:00
Go MAEDA
d97beec1d4
Add "View annotation prior to this change" button in the annotate view of Git ( #35432 ).
...
Patch by Takenori TAKAKI.
git-svn-id: https://svn.redmine.org/redmine/trunk@22217 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-04-30 04:00:57 +00:00
Go MAEDA
18275bd028
Fix RuboCop offense Rails/Presence in lib/redmine/scm/adapters/abstract_adapter.rb ( #36919 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22150 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-03-24 23:17:35 +00:00
Go MAEDA
fe71cb5bbe
Fix RuboCop offense Lint/MissingSuper ( #36919 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22147 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-03-24 09:34:40 +00:00
Go MAEDA
0b6f4c6811
Ruby 2.7: Fix RuboCop offense Performance/MapCompact ( #38134 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22055 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-17 01:38:27 +00:00
Go MAEDA
70ef2a3db1
Fix RuboCop offense Performance/ConstantRegexp ( #38146 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22029 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-11 13:26:31 +00:00
Go MAEDA
3942177f49
Fix RuboCop offense Performance/BlockGivenWithExplicitBlock ( #38146 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22027 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-11 13:20:52 +00:00
Go MAEDA
92bd67c279
Update copyright year to 2023 ( #38141 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-01 06:19:35 +00:00
Marius Balteanu
8bab808928
Fix repository browser does not show \"+\" (plus sign) in filename ( #37718 ).
...
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@21880 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-10-02 07:14:37 +00:00
Go MAEDA
6755063664
Support revision without any message in Mercurial repositories ( #36258 ).
...
Patch by salman mp and Yuichi HARADA.
git-svn-id: https://svn.redmine.org/redmine/trunk@21792 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-09-01 05:16:38 +00:00
Go MAEDA
45fafc7e44
Fix RuboCop offense Layout/LineLength due to r21785 ( #37586 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@21791 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-09-01 04:53:28 +00:00
Go MAEDA
7bff2ed0e3
Typo in an argument name: s/trailling/trailing/ ( #37586 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@21786 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-08-28 07:47:41 +00:00
Go MAEDA
c7c24cb6e2
Typo in method names: s/trailling/trailing/ ( #37586 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@21785 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-08-28 07:32:24 +00:00
Go MAEDA
11ed1784f4
Fix unnecessary requirement in /lib/redmine/scm/adapters/filesystem_adapter.rb ( #37587 ).
...
Contributed by Mischa The Evil.
git-svn-id: https://svn.redmine.org/redmine/trunk@21780 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-08-25 14:53:58 +00:00
Go MAEDA
80b7a83940
Use start_with? or end_with? to check the first or last character of a string ( #37591 ).
...
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@21774 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-08-24 13:45:20 +00:00
Go MAEDA
3686b77eb6
Update copyright year in source files to 2022 ( #36379 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-02 05:29:10 +00:00
Go MAEDA
b6a26a60f3
Fixes for Performance/StringIdentifierArgument introduced in RuboCop Performance 1.13.0 ( #35142 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21330 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-12-29 06:12:27 +00:00
Go MAEDA
4db7397d2a
Use File.exist? instead of deprecated File.exists? ( #36358 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21327 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-12-27 03:20:31 +00:00
Go MAEDA
1cf427ee63
Stricter validation of given revisions of repositories ( #35085 ).
...
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@20962 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-23 00:46:45 +00:00
Go MAEDA
919c9cfdd0
Support for Git repositories with default branch "main" ( #34942 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@20851 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-26 03:48:32 +00:00
Go MAEDA
3e36b5c452
Update copyright year in source files to 2021 ( #33069 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-25 06:58:56 +00:00
Toshi MARUYAMA
2e67986a92
remove redundant 'return' from lib/redmine/scm/adapters/cvs_adapter.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20645 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-12 15:50:21 +00:00
Toshi MARUYAMA
dfc9f20c0c
remove redundant 'return' from lib/redmine/scm/adapters/bazaar_adapter.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20644 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-12 15:50:14 +00:00
Toshi MARUYAMA
6fb4728536
fix source indent of lib/redmine/scm/adapters/cvs_adapter.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20641 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-12 15:49:51 +00:00
Toshi MARUYAMA
37834aa215
fix source indent of lib/redmine/scm/adapters/mercurial_adapter.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20537 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-02 13:31:04 +00:00
Toshi MARUYAMA
3788d6365c
add empty line after guard clause to lib/redmine/scm/adapters/cvs_adapter.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20530 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-30 15:49:36 +00:00
Toshi MARUYAMA
2132ce2618
remove spaces inside {} of lib/redmine/scm/adapters/cvs_adapter.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20446 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-20 11:36:14 +00:00
Toshi MARUYAMA
f91b5bf3da
fix source indent of lib/redmine/scm/adapters/cvs_adapter.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20443 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-20 11:35:52 +00:00
Toshi MARUYAMA
c6f14fb14f
fix source indent of lib/redmine/scm/adapters/mercurial_adapter.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20223 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-28 14:42:50 +00:00
Toshi MARUYAMA
94647052a8
fix source indent of lib/redmine/scm/adapters/git_adapter.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20214 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-27 15:19:13 +00:00
Toshi MARUYAMA
8ddbbcf4a6
fix source indent of lib/redmine/scm/adapters/abstract_adapter.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20213 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-27 15:19:05 +00:00
Toshi MARUYAMA
920e5f086f
fix source indent of lib/redmine/scm/adapters/filesystem_adapter.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20194 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-26 13:34:52 +00:00
Toshi MARUYAMA
544fe70b5f
fix source indent of lib/redmine/scm/adapters/bazaar_adapter.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20193 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-26 13:34:44 +00:00
Toshi MARUYAMA
07718ef6cf
fix source indent of lib/redmine/scm/adapters/filesystem_adapter.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20187 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-24 14:40:34 +00:00
Toshi MARUYAMA
db7a1a5c05
fix source indent of lib/redmine/scm/adapters/subversion_adapter.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20185 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-24 14:40:18 +00:00
Go MAEDA
fdba424d77
Use match? instead of =~ when MatchData is not used ( #34150 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@20168 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-23 00:13:38 +00:00