Redmine/test/unit/lib/redmine
Toshi MARUYAMA 81ef038587 scm: mercurial: drop supporting below Mercurial 1.1 (#9465)
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/trunk@7650 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-25 06:10:12 +00:00
..
export PDF: replace all non ASCII characters to '?' if Iconv error raise in JRuby (#8569, #61). 2011-06-09 03:41:26 +00:00
helpers remove trailing white-spaces from test/unit/lib/redmine/helpers/gantt_test.rb. 2011-08-30 07:53:59 +00:00
menu_manager remove trailing white-spaces from test/unit/lib/redmine/menu_manager/menu_item_test.rb. 2011-08-30 07:56:36 +00:00
scm/adapters scm: mercurial: drop supporting below Mercurial 1.1 (#9465) 2011-10-25 06:10:12 +00:00
views/builders remove trailing white-spaces from test/unit/lib/redmine/views/builders/json_test.rb. 2011-08-30 07:56:02 +00:00
wiki_formatting remove trailing white-spaces from test/unit/lib/redmine/wiki_formatting/macros_test.rb. 2011-08-30 07:54:23 +00:00
access_control_test.rb remove trailing white-spaces from test/unit/lib/redmine/access_control_test.rb. 2011-08-30 06:18:47 +00:00
ciphering_test.rb remove trailing white-spaces from test/unit/lib/redmine/ciphering_test.rb. 2011-08-30 06:18:04 +00:00
configuration_test.rb remove trailing white-spaces from test/unit/lib/redmine/configuration_test.rb. 2011-08-30 06:17:06 +00:00
hook_test.rb replace RAILS_ROOT to Rails.root at test/unit/lib/redmine/hook_test.rb. 2011-06-17 05:04:16 +00:00
i18n_test.rb remove trailing white-spaces and code clean up init i18n test. 2011-05-08 07:12:34 +00:00
menu_manager_test.rb remove trailing white-spaces from test/unit/lib/redmine/menu_manager_test.rb. 2011-08-30 06:58:08 +00:00
mime_type_test.rb remove trailing white-spaces from test/unit/lib/redmine/mime_type_test.rb. 2011-08-30 06:57:41 +00:00
notifiable_test.rb remove trailing white-spaces from test/unit/lib/redmine/notifiable_test.rb. 2011-08-30 06:56:57 +00:00
plugin_test.rb remove trailing white-spaces from test/unit/lib/redmine/plugin_test.rb. 2011-08-30 06:59:17 +00:00
safe_attributes_test.rb remove trailing white-spaces from test/unit/lib/redmine/safe_attributes_test.rb. 2011-08-30 06:58:54 +00:00
themes_test.rb remove trailing white-spaces from test/unit/lib/redmine/themes_test.rb. 2011-08-30 06:58:32 +00:00
unified_diff_test.rb remove trailing white-spaces from test/unit/lib/redmine/unified_diff_test.rb. 2011-08-30 05:06:07 +00:00
wiki_formatting.rb remove trailing white-spaces from test/unit/lib/redmine/wiki_formatting.rb. 2011-08-30 07:54:57 +00:00