summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_git_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* scm: git: add test of from_path at unit model test_fetch_changesets_from_scratchToshi MARUYAMA2012-03-291-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9289 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: fix test revision value of unit app testToshi MARUYAMA2012-03-281-2/+2
| | | | | | Hash range is from 0 to 9 and a to f git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9285 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: process new git revisions all at once rather than per branch (#10470)Toshi MARUYAMA2012-03-281-30/+38
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9283 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: backout r8839 (#8857)Toshi MARUYAMA2012-03-071-38/+30
| | | | | | call "git log" only once instead of per branch in fetching revisions. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9142 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: remove unnecessary log_encoding from overriding ↵Toshi MARUYAMA2012-02-241-3/+2
| | | | | | human_attribute_name test git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8965 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add test to override human_attribute_name of "path to repository"Toshi MARUYAMA2012-02-241-0/+28
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8963 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: split unit model test setup whether repository required or notToshi MARUYAMA2012-02-241-13/+15
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8961 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: replace "write_attribute" at unit model test for database order ↵Toshi MARUYAMA2012-02-171-2/+5
| | | | | | | | consistency (#5357) On Rails 3.0.11, "NoMethodError: private method `write_attribute'" error raises. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8899 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: replace "order" at unit model test of fetching from scratch (#5357)Toshi MARUYAMA2012-02-171-3/+2
| | | | | | | On Rails 3.0.11, this test fails. Revision order of Git and Mercurial is not date/time order. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8898 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: update test repository (#10207)Toshi MARUYAMA2012-02-121-5/+6
| | | | | | | | New "master-20120212" branch is added. Git branch is the reference to the specific revision. This branch points the same revision with "master" branch. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8855 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: call "git log" only once instead of per branch in fetching ↵Toshi MARUYAMA2012-02-111-30/+36
| | | | | | revisions (#8857) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8839 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: clarify the purpose of the unit model test to fetch history ↵Toshi MARUYAMA2012-02-101-13/+17
| | | | | | editing revisions git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8832 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: update test repository (#8857)Toshi MARUYAMA2012-02-091-11/+9
| | | | | | | New disjointed history revisions are added. This test repository has two origins. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8820 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add model method to get heads from extra_info branches hash (#8857)Toshi MARUYAMA2012-02-091-0/+16
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8816 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: use explicit "master" for latest_changesets at unit app testToshi MARUYAMA2012-02-071-2/+2
| | | | | | | If revision is not set, controller sets default branch for latest_changesets. "git log" returns HEAD on bare repository if revision is not set. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8810 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: test: model: fix failing test_parents on PostgreSQL (#5501)Toshi MARUYAMA2011-11-031-4/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7720 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: test: model: add test of parents (#5501)Toshi MARUYAMA2011-11-031-0/+19
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7712 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_next_nil at unit model testToshi MARUYAMA2011-09-111-1/+3
| | | | | | | On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7097 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_next at unit model testToshi MARUYAMA2011-09-111-1/+3
| | | | | | | On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7096 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_previous_nil at unit model testToshi MARUYAMA2011-09-111-1/+3
| | | | | | | On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7095 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_previous at unit model testToshi MARUYAMA2011-09-111-1/+3
| | | | | | | On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7094 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_log_utf8 at unit model testToshi MARUYAMA2011-09-111-1/+3
| | | | | | | On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7091 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_format_identifier at unit model testToshi MARUYAMA2011-09-111-1/+3
| | | | | | | On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7090 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_identifier at unit model testToshi MARUYAMA2011-09-111-1/+3
| | | | | | | On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7089 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_find_changeset_by_empty_name at unit ↵Toshi MARUYAMA2011-09-111-1/+3
| | | | | | | | | model test On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7088 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_latest_changesets_latin_1_dir at unit ↵Toshi MARUYAMA2011-09-111-1/+3
| | | | | | | | | model test On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7087 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_find_changeset_by_name at unit model testToshi MARUYAMA2011-09-111-1/+3
| | | | | | | On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7086 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_latest_changesets at unit model testToshi MARUYAMA2011-09-111-1/+3
| | | | | | | On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7085 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_db_consistent_ordering_before_1_2 at ↵Toshi MARUYAMA2011-09-111-1/+1
| | | | | | | | | unit model test On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7084 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_db_consistent_ordering_before_1_2 at ↵Toshi MARUYAMA2011-09-071-6/+7
| | | | | | | | | unit model test On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7072 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_db_consistent_ordering_init at unit ↵Toshi MARUYAMA2011-09-071-1/+2
| | | | | | | | | model test On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7071 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_fetch_changesets_invalid_rev at unit ↵Toshi MARUYAMA2011-09-071-5/+6
| | | | | | | | | model test On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7070 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_fetch_changesets_incremental at unit ↵Toshi MARUYAMA2011-09-071-5/+7
| | | | | | | | | model test On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7065 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: use NUM_REV at test_fetch_changesets_from_scratch of unit model testToshi MARUYAMA2011-09-071-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7064 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: define NUM_REV as the number of test repository revisions at unit ↵Toshi MARUYAMA2011-09-071-0/+2
| | | | | | model test git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7063 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: fix error of test_fetch_changesets_from_scratch at unit ↵Toshi MARUYAMA2011-09-061-1/+2
| | | | | | | | | | | | | | model test On Rails 3.1, following error raises. test_fetch_changesets_from_scratch(RepositoryGitTest): ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection: Cannot modify association 'Repository::Git#changes' because the source reflection class 'Change' is associated to 'Changeset' via :has_many. test/unit/repository_git_test.rb:68:in `test_fetch_changesets_from_scratch' git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7062 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: replace RAILS_ROOT to Rails.root in unit model test.Toshi MARUYAMA2011-06-101-2/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6044 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: skip non UTF-8 path encoding test of unit model test in JRuby (#5251).Toshi MARUYAMA2011-06-081-6/+20
| | | | | | | | | | Git, Mercurial and CVS path encodings are binary. Subversion supports URL encoding for path. Redmine Mercurial adapter and extension use URL encoding. Git accepts only binary path in command line parameter. So, there is no way to use binary command line parameter in JRuby. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6005 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add unit model test that revisions ordering is inconsistent in ↵Toshi MARUYAMA2011-05-191-0/+44
| | | | | | existing database (#5357). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5855 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add unit model test that revisions ordering is consistent in new ↵Toshi MARUYAMA2011-05-191-0/+7
| | | | | | database (#5357). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5854 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add test of fetching invalid revision in unit model test (#7146).Toshi MARUYAMA2011-05-131-0/+40
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5789 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: fix fetching 7 days problem (#7146, #6013).Toshi MARUYAMA2011-05-131-19/+36
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5788 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: fix incorrect comment in unit model test and code clean up unit ↵Toshi MARUYAMA2011-05-091-6/+15
| | | | | | model test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5722 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: remove trailing white-spaces from unit model test.Toshi MARUYAMA2011-05-081-7/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5700 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: #setup triggers a failure even if git tests should not run.Jean-Philippe Lang2011-04-111-20/+20
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5417 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add scm command tests at unit model test (#4273).Toshi MARUYAMA2011-04-081-0/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5362 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: strict Ruby 1.9 string test in unit model test.Toshi MARUYAMA2011-03-171-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5163 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: fix newlines of test/unit/repository_git_test.rb.Toshi MARUYAMA2011-03-101-5/+5
| | | | | | svn cat fails. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5075 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add tests for previous and next versions in unit model test ↵Toshi MARUYAMA2011-03-101-0/+40
| | | | | | (#7821, #5357). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5074 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: unit model latin-1 path encoding test passes on Japanese Windows ↵Toshi MARUYAMA2011-03-091-3/+9
| | | | | | | | | | (#5251). Ruby uses ANSI api to fork a process on Windows. Japanese Shift_JIS and Traditional Chinese Big5 have 0x5c(backslash) problem and these are incompatible with ASCII. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5072 e93f8b46-1217-0410-a6f0-8f06a7374b81