summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/adapters
Commit message (Collapse)AuthorAgeFilesLines
...
* code cleanup: rubocop: fix Lint/HandleExceptions in ↵Toshi MARUYAMA2019-09-121-0/+3
| | | | | | lib/redmine/scm/adapters/mercurial_adapter.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18458 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Lint/AmbiguousOperator in ↵Toshi MARUYAMA2019-09-121-1/+1
| | | | | | lib/redmine/scm/adapters/mercurial_adapter.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18456 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: scm: cvs: remove unused branchPoint method from ↵Toshi MARUYAMA2019-09-121-4/+0
| | | | | | CvsRevisionHelper class git-svn-id: http://svn.redmine.org/redmine/trunk@18453 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/SpaceInsideReferenceBrackets in ↵Toshi MARUYAMA2019-09-111-1/+1
| | | | | | lib/redmine/scm/adapters/subversion_adapter.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18447 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/LeadingCommentSpace in ↵Toshi MARUYAMA2019-08-311-1/+2
| | | | | | lib/redmine/scm/adapters/git_adapter.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18419 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup lib/redmine/scm/adapters/cvs_adapter.rbToshi MARUYAMA2019-08-311-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18418 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/LeadingCommentSpace in ↵Toshi MARUYAMA2019-08-311-2/+2
| | | | | | lib/redmine/scm/adapters/cvs_adapter.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18417 e93f8b46-1217-0410-a6f0-8f06a7374b81
* rubocop: fix Style/YodaCondition of lib/redmine/scm/adapters/abstract_adapter.rbToshi MARUYAMA2019-08-041-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18351 e93f8b46-1217-0410-a6f0-8f06a7374b81
* rubocop: fix Layout/EmptyLinesAroundAccessModifier of ↵Toshi MARUYAMA2019-08-031-0/+1
| | | | | | lib/redmine/scm/adapters/cvs_adapter.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18340 e93f8b46-1217-0410-a6f0-8f06a7374b81
* rubocop: fix Layout/AccessModifierIndentation of ↵Toshi MARUYAMA2019-07-291-1/+2
| | | | | | scm/adapters/abstract_adapter.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18331 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup: RuboCop: Style/DefWithParenthesesGo MAEDA2019-06-201-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18290 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove trailing whitespaces from lib (#31506).Go MAEDA2019-06-061-2/+2
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18231 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18199 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-257-7/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't rescue Exception class (#31387).Go MAEDA2019-05-253-8/+4
| | | | | | | Patch by Go MAEDA and Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@18197 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Garbage lines in the output of 'git branch' break git adapter (#31120).Go MAEDA2019-04-071-0/+1
| | | | | | | Contributed by Chad Petersen. git-svn-id: http://svn.redmine.org/redmine/trunk@18046 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code clean up GitAdapterToshi MARUYAMA2019-04-051-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18043 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: fix non ascii branch and tag browsing (#16881)Toshi MARUYAMA2019-04-051-5/+14
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18042 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add new one latin1 tag to test repository (#16881)Toshi MARUYAMA2019-04-051-1/+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-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18039 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code clean up GitAdapterToshi MARUYAMA2019-04-041-3/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18038 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code clean up GitAdapterToshi MARUYAMA2019-04-041-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18037 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use Regexp#match? to reduce allocations of MatchData object (#28940).Go MAEDA2019-03-275-8/+8
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@18011 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove extra #dup (#26561).Go MAEDA2019-03-211-3/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17995 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix FrozenError in BazaarAdapter.branch_conf_path (#26561).Go MAEDA2019-03-201-10/+3
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17994 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use #b shortcut instead of #force_encoding (#31059).Go MAEDA2019-03-205-10/+8
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17992 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support frozen_string_literal in lib/**/*.rb (#26561).Go MAEDA2019-03-177-26/+27
| | | | | | | Contributed by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17988 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable frozen_string_literal for files which don't contain string literals ↵Go MAEDA2019-03-171-1/+1
| | | | | | (#26561). git-svn-id: http://svn.redmine.org/redmine/trunk@17981 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-158-0/+16
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor GitAdapter#default_branch not to unnecessarily iterate through all ↵Go MAEDA2019-02-181-5/+5
| | | | | | | | | elements (#30828). Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17883 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Filesystem adapter does not show correct size for large files (#30411).Jean-Philippe Lang2019-01-201-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17831 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mercurial 4.7 compatibility (#29413).Go MAEDA2018-08-251-2/+4
| | | | | | | Patch by Frédéric Fondement. git-svn-id: http://svn.redmine.org/redmine/trunk@17474 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace String#gsub with faster String#tr (#29363).Go MAEDA2018-08-121-1/+1
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17469 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace Enumerable#sort with faster Enumerable#sort_by (#29299).Go MAEDA2018-08-022-2/+2
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17462 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove RDoc tags (#28943).Go MAEDA2018-06-082-2/+4
| | | | | | | Patch by Sho HASHIMOTO. git-svn-id: http://svn.redmine.org/redmine/trunk@17370 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mercurial 4.6 compatibility (#28725).Go MAEDA2018-05-281-4/+15
| | | | | | | Patch by Marc Schlaich and Frédéric Fondement. git-svn-id: http://svn.redmine.org/redmine/trunk@17351 e93f8b46-1217-0410-a6f0-8f06a7374b81
* mercurial: work around faulty parsing of early command options (#27516)Toshi MARUYAMA2017-12-071-13/+14
| | | | | | | | | 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: separate command options and positional arguments with "--" (#27516)Toshi MARUYAMA2017-12-071-5/+5
| | | | | | | | | | We don't have much problems here thanks to hgtarget(path) and CGI.escape(), which prepends a repository path and encodes "=" character respectively, but it's better to not rely on the side effect of these functions. Contributed by Yuya Nishihara. git-svn-id: http://svn.redmine.org/redmine/trunk@17061 e93f8b46-1217-0410-a6f0-8f06a7374b81
* mercurial: reject malicious command argument (#27516)Toshi MARUYAMA2017-12-071-0/+15
| | | | | | | | | | | | | | | | | | | | | | 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
* git: remove "--no-color" option from "git --version" for git 2.14 ↵Toshi MARUYAMA2017-08-081-1/+1
| | | | | | compatibility (#26645) git-svn-id: http://svn.redmine.org/redmine/trunk@16948 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Drop Darcs support (#26391).Jean-Philippe Lang2017-07-251-239/+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-258-8/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removes duplicate shell_quote method (#26149).Jean-Philippe Lang2017-06-171-16/+7
| | | | | | Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@16667 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove is_binary_data? from String (#25563)Toshi MARUYAMA2017-06-102-1/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16644 e93f8b46-1217-0410-a6f0-8f06a7374b81
* git: use '--no-renames' option in 'show' command (#25371)Toshi MARUYAMA2017-03-241-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16428 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Git 2.9 compatibility (#25371)Toshi MARUYAMA2017-03-201-0/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16422 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mercurial 4.1 compatibility (#24999)Toshi MARUYAMA2017-02-051-40/+41
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16329 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Autoloading Redmine::Scm::Adapters::CommandFailed might fail.Jean-Philippe Lang2016-10-201-0/+25
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15914 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
* Newlines stripped from CVS commit messages (#19835).Jean-Philippe Lang2015-06-131-1/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14301 e93f8b46-1217-0410-a6f0-8f06a7374b81