Toshi MARUYAMA
c7bfcd77dc
shorten long line of test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20456 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-21 13:51:42 +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
ee7fe71693
add space after comma to FilesystemAdapterTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20127 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-05 15:47:58 +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
Toshi MARUYAMA
4eacd4ad4a
fix source indent of BazaarAdapterTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20020 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-12 12:57:34 +00:00
Toshi MARUYAMA
764913632f
fix source indent of GitAdapterTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19966 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-08-09 15:56:55 +00:00
Toshi MARUYAMA
6ab769cae7
fix source indent of GitAdapterTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19957 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-08-07 12:43:56 +00:00
Toshi MARUYAMA
e0d81a8726
add space after comma to GitAdapterTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19952 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-08-07 12:43:15 +00:00
Toshi MARUYAMA
44ae0d0393
remove spaces inside {} of GitAdapterTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19946 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-08-07 12:42:26 +00:00
Toshi MARUYAMA
0734527a8d
fix source indent of BazaarAdapterTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19930 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-07-21 13:41:00 +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
Go MAEDA
df96636e40
test_revisions_latin_1_identifier should be skipped on Windows ( #32937 ).
...
Patch by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@19499 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-06 12:49:30 +00:00
Toshi MARUYAMA
5936e47729
cleanup: rubocop: fix Layout/SpaceAfterComma in test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19157 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-22 14:33:17 +00:00
Toshi MARUYAMA
50bd8be81b
cleanup: rubocop: fix Layout/ClosingParenthesisIndentation in test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19156 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-22 14:33:06 +00:00
Toshi MARUYAMA
9db5d29287
cleanup: rubocop: fix Layout/ClosingParenthesisIndentation in test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19136 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-21 12:45:55 +00:00
Toshi MARUYAMA
5bff94f4ee
cleanup: rubocop: fix Layout/EmptyLinesAroundClassBody in test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19122 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-21 10:45:12 +00:00
Toshi MARUYAMA
567e8e6288
cleanup: rubocop: fix Layout/AlignArguments in test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19031 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 16:05:33 +00:00
Toshi MARUYAMA
8bf12d8026
cleanup: rubocop: fix Layout/AlignArguments in test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19030 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 16:05:22 +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
dc657cb2c0
code cleanup: rubocop: fix Layout/SpaceInsideReferenceBrackets in test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18448 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-11 05:51:02 +00:00
Toshi MARUYAMA
75519b7158
code cleanup: rubocop: fix Layout/SpaceBeforeFirstArg in test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18425 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-04 05:35:37 +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
adebf4da1d
Remove trailing whitespaces from test ( #31506 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18233 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-06 14:53:23 +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
f9e708728a
Code cleanup: remove a unused variable last_rev_author from test_last_rev_with_spaces_in_filename.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18133 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-06 14:36:59 +00:00
Toshi MARUYAMA
451b6a98f7
fix source code indents in GitAdapterTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18111 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-30 08:48:47 +00:00
Toshi MARUYAMA
ec557a67a4
scm: git: fix non ascii branch and tag browsing ( #16881 )
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18042 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-05 07:41:08 +00:00
Toshi MARUYAMA
d9799f25a3
code clean up GitAdapterTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18041 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-05 07:40:57 +00:00
Toshi MARUYAMA
ae0939952e
scm: git: add new one latin1 tag to test repository ( #16881 )
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18040 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-05 06:48:37 +00:00
Toshi MARUYAMA
5d2c03a196
scm: git: add new two latin1 branches to test repository ( #16881 )
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18039 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-05 05:30:18 +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
606e75d12d
Use #b shortcut instead of #force_encoding ( #31059 ).
...
Patch by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@17992 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-20 01:36:44 +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
0910b2bdbe
Drop Darcs support ( #26391 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@16886 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-25 17:32:53 +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