Commit Graph

95 Commits

Author SHA1 Message Date
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 85f15f694a scm: mercurial: add asserting first and last changeset to test_fetch_changesets_from_scratch (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12776 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 13:08:50 +00:00
Toshi MARUYAMA f9e7c24733 scm: mercurial: use scmid_for_assert in assert_parents (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12775 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 12:20:32 +00:00
Toshi MARUYAMA 58d906446d scm: mercurial: use scmid_for_assert in assert_entries (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12774 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 12:20:16 +00:00
Toshi MARUYAMA 642f13605e scm: mercurial: use scmid_for_assert in assert_entry (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12773 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 12:19:59 +00:00
Toshi MARUYAMA 1cda73c1b4 scm: mercurial: use scmid_for_assert in assert_copied_files (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12772 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 12:19:42 +00:00
Toshi MARUYAMA 396323726b scm: mercurial: add test helper method to switch short or long id (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12771 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 12:19:26 +00:00
Toshi MARUYAMA da071e5531 scm: mercurial: split test_parents to sub method (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12770 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 11:41:17 +00:00
Toshi MARUYAMA 4bde749d40 scm: mercurial: split test_copied_files to sub method (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12769 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 11:41:01 +00:00
Toshi MARUYAMA febd239d22 scm: mercurial: split test_entries_short_id to sub method (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12768 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 11:40:44 +00:00
Toshi MARUYAMA 1f2a520a46 scm: mercurial: split test_entry_short_id to sub method (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12767 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 11:40:28 +00:00
Toshi MARUYAMA b07c983740 scm: mercurial: split latest_changesets tag test to sub method (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12766 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 07:57:02 +00:00
Toshi MARUYAMA 074984688e scm: mercurial: split latest_changesets default branch test to sub method (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12765 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 07:56:46 +00:00
Toshi MARUYAMA 8c96db6e53 scm: mercurial: split latest_changesets tag test with path or not (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12764 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 07:56:31 +00:00
Toshi MARUYAMA 79e73095e5 scm: mercurial: add latest_changesets "default" branch test (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12763 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 06:34:31 +00:00
Toshi MARUYAMA 3698dd26cf scm: mercurial: split latest_changesets tag test with limit or not (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12762 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 06:34:15 +00:00
Toshi MARUYAMA 07d7b47ddc scm: mercurial: add model entry test (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12758 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 04:43:48 +00:00
Toshi MARUYAMA 1662720d7b scm: mercurial: add model entries test (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12757 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-02 04:43:32 +00:00
Toshi MARUYAMA 28fbc270fa scm: mercurial: add check scmid to RepositoryMercurialTest#test_fetch_changesets_from_scratch (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12750 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-01 06:08:22 +00:00
Toshi MARUYAMA 5dcecec1bd scm: mercurial: use 12 chars id for format_changeset_identifier (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12749 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-01 04:23:53 +00:00
Toshi MARUYAMA fdc0731cb5 scm: mercurial: split latest_changesets test to tag and branch
git-svn-id: http://svn.redmine.org/redmine/trunk@12748 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-01 03:45:33 +00:00
Toshi MARUYAMA 31af31eef7 remove redundant empty line from RepositoryMercurialTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12747 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-01 02:39:51 +00:00
Toshi MARUYAMA 35cc911192 update copyright year (#15977)
Contributed by Daniel Felix.

git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-01-29 22:45:39 +00:00
Toshi MARUYAMA e41271f2bd remove unneeded Relation#all from RepositoryMercurialTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12576 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-01-09 09:55:10 +00:00
Toshi MARUYAMA 9cefc90b0b Rails4: scm: reload repository after destroying changesets in incremental fetch test
git-svn-id: http://svn.redmine.org/redmine/trunk@12472 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-12-29 13:48:52 +00:00
Jean-Philippe Lang e396a0eebe Copyright for 2013 (#12788).
Patch by Daniel Felix.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-12 09:29:31 +00:00
Jean-Philippe Lang 536747b747 Replaces find(:all) calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10917 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-02 20:23:48 +00:00
Jean-Philippe Lang 9b60214b3a Fixed that Repository#entries returns an Array.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9804 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-06-10 17:01:33 +00:00
Jean-Philippe Lang 2cbf9c9cc4 Renamed #changes association to #filechanges (clash with AR::Base.changes that triggers errors with Rails 3.2.5).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9759 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-06-03 11:46:58 +00:00
Jean-Philippe Lang ba5a052c8c Copyright update.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-05-05 12:56:53 +00:00
Toshi MARUYAMA 41c16ecb2f scm: mercurial: remove unnecessary log_encoding from overriding human_attribute_name test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8966 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 12:38:58 +00:00
Toshi MARUYAMA beb3b23fb6 scm: mercurial: add test to override human_attribute_name of "path to repository"
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8964 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 11:31:59 +00:00
Toshi MARUYAMA d004d83183 scm: mercurial: split unit model test setup whether repository required or not
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8962 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 11:18:59 +00:00
Toshi MARUYAMA 4a5a4bad97 scm: mercurial: test: model: fix failing test_parents on PostgreSQL (#5501)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7719 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-03 09:58:07 +00:00
Toshi MARUYAMA 9129d116b2 scm: mercurial: test: model: add test of parents (#5501)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7714 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-03 08:03:38 +00:00
Toshi MARUYAMA 476c3d54b7 scm: mercurial: update test repository (#5501)
This test repository has one merged revision.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7662 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-28 01:44:12 +00:00
Toshi MARUYAMA 520a8e6f15 scm: mercurial: use NUM_REV instead of hard-coded number of revisions at "test_fetch_changesets_incremental" of unit model test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7652 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-25 10:27:42 +00:00
Toshi MARUYAMA 3a62c30f24 scm: mercurial: skip failing unit model tests on below Mercurial 1.5 (#9465)
Tests of non ASCII nor alphabetic nor numeric *named branch* fails on below Mercurial 1.5.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7643 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-24 09:33:03 +00:00
Toshi MARUYAMA 4366112cfa Rails3: scm: mercurial: fix error of test_copied_files 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@7117 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 00:12:44 +00:00
Toshi MARUYAMA 51d14ea511 Rails3: scm: mercurial: 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@7116 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 00:12:06 +00:00
Toshi MARUYAMA eb6c6ef358 Rails3: scm: mercurial: fix error of test_changeset_order_by_revision 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@7115 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-12 00:11:34 +00:00
Toshi MARUYAMA edb5b069e7 Rails3: scm: mercurial: 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@7114 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 23:21:18 +00:00
Toshi MARUYAMA c4618ec141 Rails3: scm: mercurial: 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@7113 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 23:20:37 +00:00
Toshi MARUYAMA 0f43aaca0e Rails3: scm: mercurial: fix error of test_find_changeset_by_invalid_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@7112 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 23:19:39 +00:00
Toshi MARUYAMA 169cb86ce9 Rails3: scm: mercurial: 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@7111 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 23:18:56 +00:00
Toshi MARUYAMA 81f2cb00b6 Rails3: scm: mercurial: 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@7106 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 23:13:12 +00:00
Toshi MARUYAMA db1d619a34 Rails3: scm: mercurial: 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@7105 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 23:12:26 +00:00
Toshi MARUYAMA 8614f0afbf Rails3: scm: mercurial: 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@7104 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 23:11:28 +00:00
Toshi MARUYAMA 683ed49f15 Rails3: scm: mercurial: 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@7103 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 23:10:45 +00:00
Toshi MARUYAMA 264deedd82 Rails3: scm: mercurial: 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@7102 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-11 23:09:38 +00:00