Commit Graph

694 Commits

Author SHA1 Message Date
Toshi MARUYAMA c71208d18d scm: mercurial: lib: return array of Branch class instead of array of strings at branches method (#5501)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7673 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-28 05:19:13 +00:00
Toshi MARUYAMA cec6f5c3b0 scm: git: lib: return array of Branch class instead of array of strings at branches method (#5501)
Contributed by Jan Topiński.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7671 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-28 05:17:46 +00:00
Toshi MARUYAMA 033214578f scm: lib: add Branch class to abstract adapter (#5501)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7670 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-28 05:17:13 +00:00
Toshi MARUYAMA 36f51878a3 scm: git: lib: add parents to Revision class (#5501)
Contributed by Jan Topiński.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7668 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-28 04:58:26 +00:00
Toshi MARUYAMA 031b5bf4eb scm: mercurial: lib: add parents to Revision class (#5501)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7666 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-28 04:56:41 +00:00
Toshi MARUYAMA 0ff17efb4d scm: lib: add parents attribute to Revision class of abstract adapter (#5501)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7665 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-28 04:55:54 +00:00
Toshi MARUYAMA 887893601e scm: mercurial: remove unused "tags" from xml log templete
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7664 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-28 03:38:02 +00:00
Toshi MARUYAMA 918eac2cbd scm: mercurial: add parents to xml log template (#5501)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7663 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-28 02:46:38 +00:00
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
Toshi MARUYAMA ed87fc4e66 scm: mercurial: switch rev parameter of extension rhlog() if above Mercurial 1.6 or not (#9465)
On Mercurial 1.5, following error raises.

<pre>
hg --config extensions.redminehelper=lib/redmine/scm/adapters/mercurial/redminehelper.py \
  --rhbranch default --from default --to 0

abort: unknown revision '"default"'!
</pre>

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7641 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-24 09:32:06 +00:00
Toshi MARUYAMA a6d3409a5a scm: mercurial: fix extension cmdtable on Mercurial 1.5 (#9465)
Before Mercurial revision "40c06bbf58be":http://www.selenic.com/repo/hg-stable/rev/40c06bbf58be ,
following error raises.

<pre>
Traceback (most recent call last):
  File "/WEB-DOWN/hg-repo/hg-crew/hg", line 27, in <module>
    mercurial.dispatch.run()
  File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 30, in dispatch
    return _runcatch(u, args)
  File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 47, in _runcatch
    return _dispatch(ui, args)
  File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 398, in _dispatch
    cmd, func, args, options, cmdoptions = _parse(lui, args)
  File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 277, in _parse
    args = fancyopts.fancyopts(args, c, cmdoptions, True)
  File "/WEB-DOWN/hg-repo/hg-crew/mercurial/fancyopts.py", line 62, in fancyopts
    for short, name, default, comment in options:
ValueError: too many values to unpack

  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@7640 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-24 09:31:36 +00:00
Etienne Massip d1efb4f148 Update CodeRay version to 1.0 final (#4264).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7618 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-08 13:34:30 +00:00
Toshi MARUYAMA e2f57b5874 Rails3: lib: helper: use html_safe for Gantt
Contributed by Sylvain Utard.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7557 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-01 01:13:03 +00:00
Toshi MARUYAMA 8e7b0a7bac fix typos in lib/redmine/hook.rb (#9291)
Contributed by Igor Zubkov.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7432 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-21 09:47:31 +00:00
Toshi MARUYAMA 569e768cdb remove trailing white-spaces from lib/redmine/search.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7419 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 02:48:40 +00:00
Toshi MARUYAMA ffe523c79e remove trailing white-spaces from lib/redmine/themes.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7418 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 02:48:17 +00:00
Toshi MARUYAMA 55eef24dce remove trailing white-spaces from lib/redmine/notifiable.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7417 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 02:47:52 +00:00
Toshi MARUYAMA c1548381ba remove trailing white-spaces from lib/redmine/platform.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7416 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 02:47:28 +00:00
Toshi MARUYAMA 1efbd3ddbf remove trailing white-spaces from lib/redmine/pop3.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7415 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 02:47:03 +00:00
Toshi MARUYAMA c3a23f9d21 remove trailing white-spaces from lib/redmine/utils.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7414 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 02:46:36 +00:00
Toshi MARUYAMA 94c9f79385 remove trailing white-spaces from lib/redmine/access_control.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7412 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 02:45:43 +00:00
Toshi MARUYAMA f299f39f51 remove trailing white-spaces from lib/redmine/custom_field_format.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7411 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 02:45:15 +00:00
Toshi MARUYAMA f0f6dc4888 remove trailing white-spaces from lib/redmine/safe_attributes.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7410 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 02:44:44 +00:00
Toshi MARUYAMA 125ffb33d3 remove trailing white-spaces from lib/redmine/syntax_highlighting.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7409 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 02:44:16 +00:00
Toshi MARUYAMA 3d1d57d04c remove trailing white-spaces from lib/redmine/plugin.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7408 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 02:43:47 +00:00
Toshi MARUYAMA e9cbfa032f remove trailing white-spaces from lib/redmine/hook.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7407 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 02:12:17 +00:00
Toshi MARUYAMA 58563b4bcb remove trailing white-spaces from lib/redmine/mime_type.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7406 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 02:11:54 +00:00
Toshi MARUYAMA 3587d3d105 remove trailing white-spaces from lib/redmine/imap.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7404 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 01:14:35 +00:00
Toshi MARUYAMA 22ca26abc0 remove trailing white-spaces from lib/redmine/access_keys.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7401 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-18 08:27:45 +00:00
Toshi MARUYAMA b19e5c5c01 remove trailing white-spaces from lib/redmine/views/api_template_handler.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6962 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 02:12:42 +00:00
Toshi MARUYAMA 593f5f6fa4 remove trailing white-spaces from lib/redmine/views/builders.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6961 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 02:11:54 +00:00
Toshi MARUYAMA 6f4decc237 remove trailing white-spaces from lib/redmine/views/builders/json.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6960 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 02:11:09 +00:00
Toshi MARUYAMA 804a4e3794 remove trailing white-spaces from lib/redmine/views/builders/structure.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6959 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 02:10:25 +00:00
Toshi MARUYAMA 65396dbd35 remove trailing white-spaces from lib/redmine/views/builders/xml.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6958 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 02:09:41 +00:00
Toshi MARUYAMA 11f1a6846b remove trailing white-spaces from lib/redmine/views/other_formats_builder.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6957 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 02:08:54 +00:00
Toshi MARUYAMA 44be7d1a46 remove trailing white-spaces from lib/redmine/activity/fetcher.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6956 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 02:08:09 +00:00
Toshi MARUYAMA 28c4e0494e remove trailing white-spaces from lib/redmine/core_ext/string/conversions.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6955 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 02:07:24 +00:00
Toshi MARUYAMA 2531cec6db remove trailing white-spaces from lib/redmine/core_ext/string/inflections.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6954 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 02:06:39 +00:00
Toshi MARUYAMA 3d5eedffb2 remove trailing white-spaces from lib/redmine/default_data/loader.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6953 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 02:05:57 +00:00
Toshi MARUYAMA 325f6a721a remove trailing white-spaces from lib/redmine/helpers/calendar.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6952 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 02:05:11 +00:00
Toshi MARUYAMA 09d4503eb5 remove trailing white-spaces from lib/redmine/wiki_formatting/macros.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6951 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 02:04:41 +00:00
Toshi MARUYAMA 1556481ab1 remove trailing white-spaces from lib/redmine/wiki_formatting/textile/formatter.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6950 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 02:04:13 +00:00
Toshi MARUYAMA 9be5f2aad6 remove trailing white-spaces from lib/redmine/wiki_formatting/textile/helper.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6949 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 02:03:23 +00:00
Toshi MARUYAMA a57feec16c remove trailing white-spaces from lib/redmine/wiki_formatting.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6948 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 00:51:38 +00:00
Toshi MARUYAMA 54ae8de42b remove trailing white-spaces from lib/redmine/ciphering.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6944 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 00:48:43 +00:00
Toshi MARUYAMA 7d26d8167b remove trailing white-spaces from lib/redmine/configuration.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6943 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 00:48:02 +00:00
Toshi MARUYAMA 87faf96f6a remove trailing white-spaces from lib/redmine/i18n.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6939 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 00:45:09 +00:00
Toshi MARUYAMA 9957c3c98a remove trailing white-spaces from lib/redmine/unified_diff.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6938 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 00:44:26 +00:00
Toshi MARUYAMA ebb67a0646 remove trailing white-spaces from lib/redmine/activity.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6930 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 23:00:56 +00:00
Toshi MARUYAMA c0065e920d remove trailing white-spaces from lib/redmine/version.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6521 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 14:13:39 +00:00