Go MAEDA
1e9f1229e6
Skip repository tests when the SCM client command is unavailable ( #42500 ).
...
Patch by Go MAEDA (user:maeda).
git-svn-id: https://svn.redmine.org/redmine/trunk@23618 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-10 09:42:10 +00:00
Go MAEDA
f7f40139dd
Fix RuboCop offense Style/MapIntoArray ( #39887 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22778 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-04-09 09:49:17 +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
a6bdeb708d
Fix RuboCop offense Style/MethodCallWithoutArgsParentheses ( #36919 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22075 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-25 02:14:28 +00:00
Go MAEDA
1481c721a2
Use require_relative instead of require File.expand_path(..., __FILE__) ( #38093 ).
...
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22016 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-01 07:13:39 +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
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
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
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
c334fe23b1
add 'freeze' to avoid immutable array literals in loops at MercurialAdapterTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20642 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-12 15:49:59 +00:00
Toshi MARUYAMA
fd3b7dd4ca
fix source indent of MercurialAdapterTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20538 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-02 13:31:15 +00:00
Go MAEDA
78dfef0978
Replace gsub with tr, delete, or squeeze ( #34161 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20176 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-24 06:46:50 +00:00
Toshi MARUYAMA
8abbf9ac2f
fix source indent of MercurialAdapterTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20072 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-24 16:06:40 +00:00
Toshi MARUYAMA
77fceb7585
add space after comma to MercurialAdapterTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20042 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-17 15:48:33 +00:00
Toshi MARUYAMA
858f323da1
fix source indent of MercurialAdapterTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20041 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-17 15:48:25 +00:00
Go MAEDA
2eb7d4fd35
Fix a RuboCop offense Layout/TrailingWhitespace due to r19766 ( #27790 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19768 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-05-09 03:19:04 +00:00
Toshi MARUYAMA
6404ee5714
scm: mercurial: add double quote branch and tag name to test repository ( #27790 )
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19766 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-05-08 13:08:40 +00:00
Toshi MARUYAMA
07d14ce721
scm: mercurial: refactor MercurialAdapterTest#test_branches for easy adding new branch to test repository
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19764 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-05-08 12:25:37 +00:00
Toshi MARUYAMA
14f0215dbf
fix source indents of MercurialAdapterTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19761 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-05-08 12:25:08 +00:00
Toshi MARUYAMA
12318cff4d
scm: mercurial: add test of author and message which have control character ( #23055 )
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19608 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-22 16:35:09 +00:00
Toshi MARUYAMA
8de1d87e70
scm: mercurial: update test repository ( #23055 )
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19607 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-22 16:34:59 +00:00
Toshi MARUYAMA
28f91a7332
scm: mercurial: refactor MercurialAdapterTest#test_branches for easy adding new branch to test repository
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19605 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-22 16:15:14 +00:00
Go MAEDA
907e0173e4
Update copyright year in source files to 2020 ( #33069 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-03 00:24:10 +00:00
Toshi MARUYAMA
513e869c93
cleanup: rubocop: fix Layout/AlignArguments in test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18935 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-08 00:46:03 +00:00
Toshi MARUYAMA
9fa084133b
code clean up test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18344 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-04 04:51:26 +00:00
Toshi MARUYAMA
6e6b01a65e
rubocop: fix Layout/BlockAlignment of test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18343 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-04 04:51:14 +00:00
Toshi MARUYAMA
4b95697d23
rubocop: fix Layout/CaseIndentation of test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18338 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-03 05:33:57 +00:00
Toshi MARUYAMA
ec4177a2f3
rubocop: fix Layout/AlignArray of test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18332 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-07-29 12:47:01 +00:00
Go MAEDA
4082069c75
Update copyright year.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 07:36:06 +00:00
Go MAEDA
b900ae6107
Support frozen_string_literal in test/**/*.rb ( #26561 ).
...
Contributed by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@17996 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-21 03:27:53 +00:00
Go MAEDA
26509e7f4c
Decode hexadecimal-encoded literals in order to be frozen string literals friendly ( #31004 ).
...
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17991 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-19 15:43:55 +00:00
Go MAEDA
5861160ffc
Add "frozen_string_literal: false" for all files ( #26561 ).
...
This will be changed to true in the future.
git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00
Toshi MARUYAMA
9d797400ea
mercurial: work around faulty parsing of early command options ( #27516 )
...
Use -sVALUE and --long=VALUE instead of "-s VALUE" and "--long VALUE"
respectively.
Contributed by Yuya Nishihara.
git-svn-id: http://svn.redmine.org/redmine/trunk@17062 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-12-07 11:38:47 +00:00
Toshi MARUYAMA
ca87bf766c
mercurial: reject malicious command argument ( #27516 )
...
We've got a security report from the Phabricator team, which basically says
--config and --debugger arguments can be injected anywhere to lead to an
arbitrary command execution.
https://secure.phabricator.com/rPa7921a4448093d00defa8bd18f35b8c8f8bf3314
This is a fundamental issue of the argument parsing rules in Mercurial, which
allows extensions to populate their parsing rules and such extensions can be
loaded by "--config extensions.<name>=". There's a chicken and egg problem.
We're working on hardening the parsing rules, but which won't come in by
default as it would be a behavior change.
This patch adds a verification to reject malicious command arguments as a
last ditch. The subsequent patches will fix the problem in more appropriate
way.
Contributed by Yuya Nishihara.
git-svn-id: http://svn.redmine.org/redmine/trunk@17060 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-12-07 11:38:23 +00:00
Jean-Philippe Lang
7fd04e1f8d
Update copyright.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-25 08:40:31 +00:00
Jean-Philippe Lang
5a77904a91
Don't use assert_equal nil.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16072 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-13 20:12:34 +00:00
Jean-Philippe Lang
cda9c63d9c
Updates copyright for 2016.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-13 10:30:10 +00:00
Jean-Philippe Lang
000124f44f
Copyright update.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-11 09:09:50 +00:00
Jean-Philippe Lang
2d1866d966
Merged rails-4.1 branch ( #14534 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-22 17:37:16 +00:00
Toshi MARUYAMA
e266ddb309
scm: mercurial: add one "closed" branch to test repository ( #16177 )
...
git-svn-id: http://svn.redmine.org/redmine/trunk@12929 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-26 11:27:41 +00:00
Toshi MARUYAMA
5872d079e6
scm: mercurial: use long id in adapter level ( #14361 )
...
git-svn-id: http://svn.redmine.org/redmine/trunk@12761 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 04:44:38 +00:00
Toshi MARUYAMA
d26b4fc5b7
scm: mercurial: add adapter entry test ( #14361 )
...
git-svn-id: http://svn.redmine.org/redmine/trunk@12756 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 04:43:17 +00:00
Toshi MARUYAMA
f2ec6f8d77
back out r12752 ( #14361 )
...
Revision, Author and Comment of repository browser are broken.
git-svn-id: http://svn.redmine.org/redmine/trunk@12753 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-01 08:46:47 +00:00
Toshi MARUYAMA
ae68ff1100
scm: mercurial: use long id in adapter level ( #14361 )
...
git-svn-id: http://svn.redmine.org/redmine/trunk@12752 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-01 07:47:04 +00:00
Toshi MARUYAMA
35cc911192
update copyright year ( #15977 )
...
Contributed by Daniel Felix.
git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-01-29 22:45:39 +00:00
Toshi MARUYAMA
596366b062
upgrade mocha 0.14 and remove deprecation warning
...
<pre>
Mocha deprecation warning: Change `require 'mocha'` to `require 'mocha/setup'`.
</pre>
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11896 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-21 12:57:11 +00:00
Jean-Philippe Lang
e396a0eebe
Copyright for 2013 ( #12788 ).
...
Patch by Daniel Felix.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-12 09:29:31 +00:00
Toshi MARUYAMA
17db2dca3d
scm: mercurial: add test of diff from new to old revision to unit lib test
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10390 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-16 08:51:19 +00:00
Toshi MARUYAMA
c70bc540dd
add copyright statement to test/unit/lib/redmine/scm/adapters/*.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10378 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-14 21:40:45 +00:00
Toshi MARUYAMA
2b4549b3ea
scm: mercurial: test: lib: update branches test for Branch class ( #5501 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7674 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-28 05:19:58 +00:00