Commit Graph

71 Commits

Author SHA1 Message Date
Toshi MARUYAMA e34dab7443 scm: git: update test repository (#8857)
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
2012-02-09 08:20:37 +00:00
Toshi MARUYAMA 693191e8bf scm: git: add model method to get heads from extra_info branches hash (#8857)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8816 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-09 00:11:03 +00:00
Toshi MARUYAMA ed8f988a9b scm: git: use explicit "master" for latest_changesets at unit app test
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
2012-02-07 23:27:51 +00:00
Toshi MARUYAMA e1f3719634 scm: git: test: model: fix failing test_parents on PostgreSQL (#5501)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7720 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-03 09:58:38 +00:00
Toshi MARUYAMA e0f7acaf61 scm: git: test: model: add test of parents (#5501)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7712 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-03 08:02:53 +00:00
Toshi MARUYAMA 1e3ae6d3ba Rails3: scm: git: fix error of test_next_nil at 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@7097 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 11:54:34 +00:00
Toshi MARUYAMA 9ba1c073c4 Rails3: scm: git: fix error of test_next at 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@7096 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 11:54:11 +00:00
Toshi MARUYAMA a7fc207fe8 Rails3: scm: git: fix error of test_previous_nil at 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@7095 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 11:53:48 +00:00
Toshi MARUYAMA 588454571d Rails3: scm: git: fix error of test_previous at 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@7094 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 11:53:24 +00:00
Toshi MARUYAMA 3a9862b83f Rails3: scm: git: fix error of test_log_utf8 at 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@7091 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 10:13:53 +00:00
Toshi MARUYAMA 1b3840fdc3 Rails3: scm: git: fix error of test_format_identifier at 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@7090 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 10:13:17 +00:00
Toshi MARUYAMA 78072899e5 Rails3: scm: git: fix error of test_identifier at 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@7089 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 10:12:44 +00:00
Toshi MARUYAMA c3c8187e63 Rails3: scm: git: fix error of test_find_changeset_by_empty_name at 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@7088 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 10:12:03 +00:00
Toshi MARUYAMA 9c81407b91 Rails3: scm: git: fix error of test_latest_changesets_latin_1_dir at 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@7087 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 08:44:16 +00:00
Toshi MARUYAMA 2cc6197b70 Rails3: scm: git: fix error of test_find_changeset_by_name at 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@7086 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 08:43:42 +00:00
Toshi MARUYAMA 1b89c374b1 Rails3: scm: git: fix error of test_latest_changesets at 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@7085 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 08:43:05 +00:00
Toshi MARUYAMA 942563a116 Rails3: scm: git: fix error of test_db_consistent_ordering_before_1_2 at 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
2011-09-11 08:42:30 +00:00
Toshi MARUYAMA 56ef96081b Rails3: scm: git: fix error of test_db_consistent_ordering_before_1_2 at 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
2011-09-07 04:03:41 +00:00
Toshi MARUYAMA 2510de53ae Rails3: scm: git: fix error of test_db_consistent_ordering_init at 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@7071 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-07 04:02:54 +00:00
Toshi MARUYAMA 63d55cea85 Rails3: scm: git: fix error of test_fetch_changesets_invalid_rev at 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@7070 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-07 04:01:49 +00:00
Toshi MARUYAMA 63b9005f45 Rails3: scm: git: fix error of test_fetch_changesets_incremental at 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@7065 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-07 00:58:14 +00:00
Toshi MARUYAMA 379f8691b7 scm: git: use NUM_REV at test_fetch_changesets_from_scratch of unit model test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7064 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-07 00:57:19 +00:00
Toshi MARUYAMA 32b328f8d5 scm: git: define NUM_REV as the number of test repository revisions at unit model test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7063 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-07 00:56:44 +00:00
Toshi MARUYAMA 9cc83b425b Rails3: scm: git: fix error of test_fetch_changesets_from_scratch at unit 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
2011-09-06 13:57:49 +00:00
Toshi MARUYAMA 8ca1d90980 scm: git: replace RAILS_ROOT to Rails.root in unit model test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6044 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-06-10 07:06:59 +00:00
Toshi MARUYAMA 91abe15482 scm: git: skip non UTF-8 path encoding test of unit model test in JRuby (#5251).
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
2011-06-08 10:06:03 +00:00
Toshi MARUYAMA 24d58543be scm: git: add unit model test that revisions ordering is inconsistent in existing database (#5357).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5855 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-19 02:17:19 +00:00
Toshi MARUYAMA 9376f6e2c3 scm: git: add unit model test that revisions ordering is consistent in new database (#5357).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5854 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-19 02:16:56 +00:00
Toshi MARUYAMA 4c963cc9dc scm: git: add test of fetching invalid revision in unit model test (#7146).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5789 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-13 10:39:07 +00:00
Toshi MARUYAMA 7ca5a4939e scm: git: fix fetching 7 days problem (#7146, #6013).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5788 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-13 10:38:45 +00:00
Toshi MARUYAMA f3a069281e scm: git: fix incorrect comment in unit model test and code clean up unit model test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5722 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-09 15:26:50 +00:00
Toshi MARUYAMA 3a5cf54128 scm: git: remove trailing white-spaces from unit model test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5700 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-08 02:49:41 +00:00
Jean-Philippe Lang c52f928f35 Fixed: #setup triggers a failure even if git tests should not run.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5417 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-11 17:58:04 +00:00
Toshi MARUYAMA d21f7fe1bf scm: git: add scm command tests at unit model test (#4273).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5362 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-08 05:42:43 +00:00
Toshi MARUYAMA 899d1d8acb scm: git: strict Ruby 1.9 string test in unit model test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5163 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-17 03:54:00 +00:00
Toshi MARUYAMA 2ebaf1372d scm: git: fix newlines of test/unit/repository_git_test.rb.
svn cat fails.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5075 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-10 08:43:23 +00:00
Toshi MARUYAMA c072d3b62f scm: git: add tests for previous and next versions in unit model test (#7821, #5357).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5074 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-10 04:31:10 +00:00
Toshi MARUYAMA b235e36946 scm: git: unit model latin-1 path encoding test passes on Japanese Windows (#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
2011-03-09 04:14:17 +00:00
Toshi MARUYAMA 084bdd7559 scm: git: add latin-1 encoding directory test in unit model test (#5251).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5063 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-08 12:08:35 +00:00
Toshi MARUYAMA 266e33b5f1 scm: git: add latin-1 encoding directory to test repository (#5251).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5060 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-08 11:01:51 +00:00
Toshi MARUYAMA e2adda86c2 scm: git: add latest changesets path encoding test in unit model test (#5251).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5058 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-08 07:41:25 +00:00
Toshi MARUYAMA 7d47bf8a7f scm: git: prepare path encoding test in unit model test (#5251).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5057 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-08 07:41:04 +00:00
Toshi MARUYAMA 7c7bbf6d18 scm: git: add latest changesets branch test in unit model test (#5357).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5056 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-08 07:06:46 +00:00
Toshi MARUYAMA 71ac6a29f0 scm: git: add latest changesets tag test in unit model test (#5357).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5055 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-08 07:06:25 +00:00
Toshi MARUYAMA cc6931f58d scm: git: add latest changesets limit test in unit model test (#5357).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5054 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-08 07:06:04 +00:00
Toshi MARUYAMA d0324858c1 scm: git: remove Setting.commit_logs_encoding from unit model test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5053 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-08 06:50:29 +00:00
Toshi MARUYAMA c95e4fbea9 scm: git: add latest changesets test in unit model test (#5357).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5052 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-08 06:50:05 +00:00
Toshi MARUYAMA c381ce10e4 scm: git: prepare path encoding test in unit model test (#5251).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5051 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-08 06:49:44 +00:00
Toshi MARUYAMA daac76f1b6 scm: git: update test repository for path encoding (#5251).
Mercurial and Git treats file names as byte string.
This git test repository contains Latin-1 encoding path.
Be careful on non Latin-1(CP1252) Windows.

Please see r4996 comment.

I removed a revision including "copied file" from r5026 test repository.
Mercurial supports "copy", but Git does not support.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5033 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-07 23:47:25 +00:00
Toshi MARUYAMA 5d9962751c scm: git: backout r5026 (#5251).
In case git repository contains latin-1 path,
although Redmine uses "git log -C core.quotepath=false --encoding=UTF-8",
log encoding is latin-1.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5027 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-07 13:46:21 +00:00