summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine/scm
Commit message (Collapse)AuthorAgeFilesLines
...
* rubocop: fix Layout/CaseIndentation of ↵Toshi MARUYAMA2019-08-031-2/+2
| | | | | | 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
* rubocop: fix Layout/AlignArray of ↵Toshi MARUYAMA2019-07-291-1/+1
| | | | | | 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
* Remove trailing whitespaces from test (#31506).Go MAEDA2019-06-061-4/+4
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18233 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-256-6/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup: remove a unused variable last_rev_author from ↵Go MAEDA2019-05-061-1/+0
| | | | | | test_last_rev_with_spaces_in_filename. git-svn-id: http://svn.redmine.org/redmine/trunk@18133 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix source code indents in GitAdapterTestToshi MARUYAMA2019-04-301-4/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18111 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: fix non ascii branch and tag browsing (#16881)Toshi MARUYAMA2019-04-051-0/+64
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18042 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code clean up GitAdapterTestToshi MARUYAMA2019-04-051-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18041 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add new one latin1 tag to test repository (#16881)Toshi MARUYAMA2019-04-051-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18040 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add new two latin1 branches to test repository (#16881)Toshi MARUYAMA2019-04-051-4/+14
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18039 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support frozen_string_literal in test/**/*.rb (#26561).Go MAEDA2019-03-216-6/+6
| | | | | | | Contributed by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17996 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use #b shortcut instead of #force_encoding (#31059).Go MAEDA2019-03-201-1/+1
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17992 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Decode hexadecimal-encoded literals in order to be frozen string literals ↵Go MAEDA2019-03-192-10/+6
| | | | | | | | | friendly (#31004). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17991 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-156-0/+12
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* mercurial: work around faulty parsing of early command options (#27516)Toshi MARUYAMA2017-12-071-6/+6
| | | | | | | | | 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
* mercurial: reject malicious command argument (#27516)Toshi MARUYAMA2017-12-071-0/+19
| | | | | | | | | | | | | | | | | | | | | | 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
* Drop Darcs support (#26391).Jean-Philippe Lang2017-07-251-60/+0
| | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@16886 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-257-7/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't use assert_equal nil.Jean-Philippe Lang2016-12-131-1/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16072 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use assert_nil instead of assert_equal.Jean-Philippe Lang2016-12-111-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16060 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-137-7/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-117-7/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-4.1 branch (#14534).Jean-Philippe Lang2014-10-226-1252/+1194
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: add one "closed" branch to test repository (#16177)Toshi MARUYAMA2014-02-261-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12929 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails4: fix time related git adapter test failuresToshi MARUYAMA2014-02-141-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12882 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: use long id in adapter level (#14361)Toshi MARUYAMA2014-02-021-33/+33
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12761 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: add adapter entry test (#14361)Toshi MARUYAMA2014-02-021-0/+41
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12756 e93f8b46-1217-0410-a6f0-8f06a7374b81
* back out r12752 (#14361)Toshi MARUYAMA2014-02-011-31/+31
| | | | | | Revision, Author and Comment of repository browser are broken. git-svn-id: http://svn.redmine.org/redmine/trunk@12753 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: use long id in adapter level (#14361)Toshi MARUYAMA2014-02-011-31/+31
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12752 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-297-7/+7
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: use "--encoding=UTF-8" for blame (#14931)Toshi MARUYAMA2013-09-181-0/+13
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12143 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: change non ASCII user name variable to instance variable (#14931)Toshi MARUYAMA2013-09-181-5/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12142 e93f8b46-1217-0410-a6f0-8f06a7374b81
* CVS root_url not recognized when connection string does not include port ↵Jean-Philippe Lang2013-07-151-2/+13
| | | | | | (#14422). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12027 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a test for CvsAdapter#root_url_path (#14422).Jean-Philippe Lang2013-07-131-0/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12017 e93f8b46-1217-0410-a6f0-8f06a7374b81
* upgrade mocha 0.14 and remove deprecation warningToshi MARUYAMA2013-05-216-6/+6
| | | | | | | | <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
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-127-7/+7
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix scm_iconv local variable name (#12228)Toshi MARUYAMA2012-10-281-0/+17
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10741 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: add entry test to unit lib testToshi MARUYAMA2012-09-171-0/+31
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10411 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add entry test to unit lib testToshi MARUYAMA2012-09-171-0/+31
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10410 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: add revisions test to unit lib testToshi MARUYAMA2012-09-171-0/+16
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10408 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: add test of diff from new to old revision to unit lib testToshi MARUYAMA2012-09-161-1/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10390 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: add diff test to unit lib testToshi MARUYAMA2012-09-161-0/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10389 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: remove unnecessary encoding header from unit adapter testToshi MARUYAMA2012-09-151-1/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10385 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: change test author encoding in unit adapter test to ASCII-8BITToshi MARUYAMA2012-09-151-1/+1
| | | | | | Author encoding in adapter is ASCII-8BIT. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10384 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add copyright statement to test/unit/lib/redmine/scm/adapters/*.rbToshi MARUYAMA2012-09-146-0/+100
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10378 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: fix unable to run unit lib test if git binary is not available on ↵Toshi MARUYAMA2012-06-181-10/+10
| | | | | | Windows git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9870 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: skip Latin-1 path tests on Git for Windows above 1.7.10Toshi MARUYAMA2012-06-021-4/+8
| | | | | | | | | Git for Windows (msysGit) changed internal API from ANSI to Unicode in 1.7.10. http://code.google.com/p/msysgit/issues/detail?id=80 So, Latin-1 path tests fail on Japanese Windows git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9750 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2012-05-051-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: fix test revision value of unit lib testToshi MARUYAMA2012-04-271-5/+5
| | | | | | Hash value range is from 0 to 9 and a to f git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9541 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove hard-coded non ASCII literal from unit git lib testToshi MARUYAMA2012-03-141-7/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9238 e93f8b46-1217-0410-a6f0-8f06a7374b81