Commit Graph

227 Commits

Author SHA1 Message Date
Toshi MARUYAMA
e96a74b6e1 add empty line after guard clause to app/models/repository/bazaar.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20215 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-27 15:19:20 +00:00
Toshi MARUYAMA
8b49aeeb32 add empty line after guard clause to app/models/repository/mercurial.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20043 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-17 15:48:41 +00:00
Toshi MARUYAMA
0e6e6a3169 remove spaces inside {} of app/models/repository/mercurial.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20024 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-12 12:58:06 +00:00
Toshi MARUYAMA
2ba01fba7d fix source indent of app/models/repository/git.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20019 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-12 12:57:26 +00:00
Toshi MARUYAMA
b7673a7a37 remove spaces inside {} of app/models/repository/git.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19923 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-07-21 13:40:03 +00:00
Toshi MARUYAMA
c7213ab4d6 use a normal unless-statement over a modifier clause in a multiline statement at app/models/repository/bazaar.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19875 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-07-09 15:18:47 +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
5600c3cf5a cleanup: rubocop: fix Style/MultilineIfModifier in app/models/repository/subversion.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19215 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-23 15:11:40 +00:00
Toshi MARUYAMA
cff0fb1855 cleanup: rubocop: fix Layout/EmptyLineAfterGuardClause in app/models/repository/subversion.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19214 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-23 15:11:28 +00:00
Toshi MARUYAMA
0b487967da cleanup: rubocop: fix Layout/SpaceAfterComma in app/models/repository/git.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19208 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-23 15:10:25 +00:00
Toshi MARUYAMA
34aa758c1d cleanup: rubocop: fix Layout/EmptyLineAfterGuardClause in app/models/repository/git.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19174 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-22 14:55:26 +00:00
Toshi MARUYAMA
7d03976e6a cleanup: rubocop: fix Layout/SpaceInsideParens in app/models/repository/mercurial.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18955 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-08 12:34:09 +00:00
Toshi MARUYAMA
08918ce867 cleanup: rubocop: fix Style/MethodCallWithoutArgsParentheses in app/models/repository/cvs.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18954 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-08 12:04:03 +00:00
Toshi MARUYAMA
89ba5ae630 cleanup: rubocop: fix Layout/AlignArguments in app/models/repository/cvs.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18943 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-08 02:09:17 +00:00
Toshi MARUYAMA
4c9bef2ace code cleanup: rubocop: fix Style/ParenthesesAroundCondition in app/models/repository/bazaar.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18512 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-24 05:13:46 +00:00
Toshi MARUYAMA
fb221e8069 code cleanup: rubocop: fix Layout/SpaceInsideRangeLiteral in app/models/repository/cvs.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18507 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-24 02:34:43 +00:00
Toshi MARUYAMA
fd51a4fe58 code cleanup: rubocop: fix Style/CommentedKeyword in app/models/repository/cvs.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18492 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-20 17:54:54 +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
b0e17e8199 Don't rescue Exception class (#31387).
Patch by Go MAEDA and Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@18197 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 06:50:25 +00:00
Go MAEDA
72e1451159 Use Regexp#match? to reduce allocations of MatchData object (#28940).
Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@18011 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-27 02:15:24 +00:00
Go MAEDA
bd5977d97e Support frozen_string_literal in app/**/*.rb (#26561).
Contributed by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@17987 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-17 13:36:03 +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
Go MAEDA
e159928e6b Use find_by instead of where.first to remove unnecessary sorting (#26747).
Patch by  Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17586 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-06 16:03:26 +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
d74f0bfd5c Merged rails-5.1 branch (#23630).
git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-23 11:26:04 +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
Toshi MARUYAMA
6139e0033a spelling fixes (#25495)
git-svn-id: http://svn.redmine.org/redmine/trunk@16445 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-02 03:34:44 +00:00
Jean-Philippe Lang
c7f03c00a9 Use exists? instead of count (#24839).
Patch by Vincent Robert and Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@16211 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-16 18:12:49 +00:00
Jean-Philippe Lang
46044b48a3 Adds accessors for report_last_commit.
git-svn-id: http://svn.redmine.org/redmine/trunk@15885 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-04 16:40:24 +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
98c28b467b Don't validate the repository when updating/clearing extra info (#19400).
git-svn-id: http://svn.redmine.org/redmine/trunk@14143 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-20 10:23:12 +00:00
Jean-Philippe Lang
07795cfed5 Code cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@14055 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-08 09:12:18 +00:00
Toshi MARUYAMA
8327f650c3 fix code indent at app/models/repository/cvs.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@13905 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-18 16:40:42 +00:00
Toshi MARUYAMA
ad9fd2b66b use "where" instead of find_by_ at Repository::Cvs class
git-svn-id: http://svn.redmine.org/redmine/trunk@13904 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-18 16:40:34 +00:00
Toshi MARUYAMA
2cc3ba063f revert r13901
git-svn-id: http://svn.redmine.org/redmine/trunk@13903 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-18 16:27:31 +00:00
Toshi MARUYAMA
6cc1f2be54 workaround unit cvs test failure on sqlite3
git-svn-id: http://svn.redmine.org/redmine/trunk@13901 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-18 16:13:05 +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
13f9ccaed8 Adds configuration settings to limit valid repository path (#1415).
git-svn-id: http://svn.redmine.org/redmine/trunk@13573 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-08 10:52:59 +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
a87cc86b99 fix typo of app/models/repository/mercurial.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@13129 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-05-03 23:21:01 +00:00
Toshi MARUYAMA
6eaba1137a fix typo of app/models/repository/cvs.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@13128 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-05-03 23:20:45 +00:00
Toshi MARUYAMA
bec603eb9b replace tabs to spaces at app/models/repository/cvs.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@13089 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-04-15 22:49:48 +00:00
Toshi MARUYAMA
22c7e0b8df fix source indent of Repository::Cvs model
git-svn-id: http://svn.redmine.org/redmine/trunk@12878 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-13 07:13:59 +00:00
Toshi MARUYAMA
b87a7b8984 scm: mercurial: insert long id to DB unless existing id in DB is not short id (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12777 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 14:53:16 +00:00
Toshi MARUYAMA
d301b8c0c1 scm: mercurial: switch short or long id of entry by existing value in DB (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12760 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 04:44:20 +00:00
Toshi MARUYAMA
eb18660369 scm: mercurial: override entry and scm_entries (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12759 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 04:44:04 +00:00
Toshi MARUYAMA
8a35585bd2 scm: mercurial: add method to switch short or long id by existing value in DB (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12755 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 00:41:16 +00:00
Toshi MARUYAMA
d45bf0a83e scm: split Repository#entries (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12754 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 00:40:59 +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