Redmine/test/unit
Toshi MARUYAMA 83ab216d70 Merged r7650 from trunk
scm: mercurial: drop supporting below Mercurial 1.1

On November 1st 2011, Mercurial 2.0 will be released.

On Mercurial 1.1.2, unit lib test fails with following error.

<pre>
Traceback (most recent call last):
  File "/WEB-DOWN/hg-repo/hg-crew/hg", line 20, in <module>
    mercurial.dispatch.run()
  File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 20, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 29, in dispatch
    return _runcatch(u, args)
  File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 45, in _runcatch
    return _dispatch(ui, args)
  File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 367, in _dispatch
    ret = _runcommand(ui, options, cmd, d)
  File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 416, in _runcommand
    return checkargs()
  File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 376, in checkargs
    return cmdfunc()
  File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 361, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/WEB-DOWN/hg-repo/hg-crew/mercurial/util.py", line 715, in check
    return func(*args, **kwargs)
  File "/REDMINE-1/hg-workdir/redmine-bb-all/lib/redmine/scm/adapters/mercurial/redminehelper.py", line 149, in rhlog
    if hg.util.version() >= '1.6':
AttributeError: 'module' object has no attribute 'version'

  1) Error:
test_nodes_in_branch(MercurialAdapterTest):
Redmine::Scm::Adapters::MercurialAdapter::HgCommandAborted: hg exited with non-zero status: 1
    lib/redmine/scm/adapters/mercurial_adapter.rb:306:in `hg'
    lib/redmine/scm/adapters/mercurial_adapter.rb:234:in `nodes_in_branch'
    test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:311:in `test_nodes_in_branch'
    test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:304:in `each'
    test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:304:in `test_nodes_in_branch'
</pre>

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.2-stable@7651 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-25 07:20:14 +00:00
..
helpers Merged #7563 from trunk (#7215). 2011-10-02 17:28:33 +00:00
initializers Merged r6126 from trunk. 2011-07-02 17:43:08 +00:00
lib Merged r7650 from trunk 2011-10-25 07:20:14 +00:00
activity_test.rb Merged r5944 from trunk. 2011-05-29 07:47:25 +00:00
attachment_test.rb remove trailing white-spaces from unit attachment test. 2011-05-18 07:53:50 +00:00
auth_source_ldap_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
board_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
changeset_test.rb scm: fix indents of test/unit/changeset_test.rb. 2011-05-09 04:54:37 +00:00
comment_test.rb Adds email notifications support for news comments (#2074). 2011-03-04 14:32:58 +00:00
custom_field_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
custom_field_user_format_test.rb Fixed: empty list for user/version custom fields on bulk edit form (#2096). 2011-04-07 16:34:58 +00:00
custom_value_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
default_data_test.rb remove trailing white-spaces from unit default data test. 2011-05-18 07:54:25 +00:00
document_category_test.rb remove trailing white-spaces and an empty line from unit document category test. 2011-05-18 07:54:54 +00:00
document_test.rb remove trailing white-spaces from unit document test. 2011-05-18 07:56:16 +00:00
enabled_module_test.rb remove trailing white-spaces from unit enabled module test. 2011-05-18 07:55:38 +00:00
enumeration_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
group_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
issue_category_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
issue_nested_set_test.rb remove trailing white-spaces from unit issue nested set test. 2011-05-17 01:15:01 +00:00
issue_priority_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
issue_relation_test.rb Merged r6124 from trunk. 2011-06-26 12:51:09 +00:00
issue_status_test.rb Allow additional workflow transitions for issue author and assignee (#2732). 2011-02-20 15:38:07 +00:00
issue_test.rb Merged r6147 and r6149 from trunk. 2011-07-02 17:29:54 +00:00
journal_observer_test.rb remove trailing white-spaces and an empty line from unit journal observer test. 2011-05-17 01:16:04 +00:00
journal_test.rb remove trailing white-spaces from unit journal test. 2011-05-17 01:16:31 +00:00
mail_handler_test.rb Merged r6199 from trunk. 2011-07-09 10:51:57 +00:00
mailer_test.rb Remove empty lines from test/unit/mailer_test.rb. 2011-04-04 01:10:10 +00:00
member_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
message_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
news_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
principal_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
project_nested_set_test.rb Additional unit tests for project tree. 2011-01-06 21:17:08 +00:00
project_test.rb Merged r6098 from trunk. 2011-06-21 03:35:36 +00:00
query_test.rb Fixes an assertion for postgresql (#7097). 2011-04-29 13:33:15 +00:00
repository_bazaar_test.rb scm: bazaar: add changesets order test in unit model test. 2011-03-16 05:50:06 +00:00
repository_cvs_test.rb scm: cvs: remove trailing white-spaces from unit model test. 2011-05-08 05:08:44 +00:00
repository_darcs_test.rb scm: darcs: add entries test in invalid revision in model. 2011-04-12 05:47:05 +00:00
repository_filesystem_test.rb scm: filesystem: code clean up unit model test. 2011-05-21 01:10:47 +00:00
repository_git_test.rb Merged r6005 from trunk. 2011-08-17 08:16:23 +00:00
repository_mercurial_test.rb Merged r7643 from trunk 2011-10-24 11:29:38 +00:00
repository_subversion_test.rb scm: subversion: remove trailing white-spaces from unit model test. 2011-05-08 05:10:45 +00:00
repository_test.rb scm: add a test of a repository model method "merge_extra_info()" in unit test (#7146, #7047). 2011-05-12 23:58:58 +00:00
role_test.rb Localize anonymous and non member roles names (#8072). 2011-04-05 22:37:45 +00:00
search_test.rb remove trailing white-spaces from unit search test. 2011-05-17 02:39:40 +00:00
setting_test.rb remove trailing white-spaces from unit setting test. 2011-05-18 11:36:35 +00:00
testing_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
time_entry_activity_test.rb add functional tests for bulk edit time entries (#7996). 2011-04-04 11:54:22 +00:00
time_entry_test.rb Adds a test for TimeEntry#spent_on= with invalid string. 2011-01-14 18:45:28 +00:00
token_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
tracker_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
user_preference_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
user_test.rb Changed the way the visibility SQL statement is built. 2011-03-15 15:39:59 +00:00
version_test.rb ruby1.9 compatibility 2010-12-31 11:16:03 +00:00
watcher_test.rb Merged r5880 from trunk. 2011-05-29 07:18:05 +00:00
wiki_content_test.rb remove trailing white-spaces from unit wiki content test. 2011-05-17 02:38:55 +00:00
wiki_page_test.rb remove trailing white-spaces from unit wiki page test. 2011-05-17 02:37:04 +00:00
wiki_redirect_test.rb Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050 2010-12-12 23:24:34 +00:00
wiki_test.rb remove trailing white-spaces from unit wiki test. 2011-05-17 02:38:09 +00:00
workflow_test.rb Merged r6148 from trunk. 2011-07-02 17:28:33 +00:00