Defect #7325
closedWhen browsing a file in a Mercurial repository Redmine 500's
Added by Wesly Grefrath almost 16 years ago. Updated almost 16 years ago.
Description
When clicked on a file in the repository viewer (Mercurial SCM) to take a look at it, Redmin gives a 500.
The error log shows this at that moment:
Unknown option: --
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
Updated by Wesly Grefrath almost 16 years ago
Actions
#1
Some extra info:
- Database: PostgreSQL 8.3
- Ruby 1.8.7 (x86_64)
- Rails 2.3.5
- SCM version: Mercurial 1.4.3
Updated by Toshi MARUYAMA almost 16 years ago
Actions
#2
- Assignee set to Toshi MARUYAMA
Updated by Toshi MARUYAMA almost 16 years ago
Actions
#3
What OS do you use in Redmine Server?
Updated by Wesly Grefrath almost 16 years ago
Actions
#4
CentOS 5.4
Updated by Toshi MARUYAMA almost 16 years ago
Actions
#5
Is your Mercurial /usr/bin/hg?
Updated by Wesly Grefrath almost 16 years ago
Actions
#6
No. It's a symlink to a different location. We need Python 2.6 so we compiled our own and hg is installed with 2.6
Updated by Toshi MARUYAMA almost 16 years ago
Actions
#7
- Priority changed from High to Normal
Could you set PATH to "hg" path or edit absolute path at source:/tags/1.1.0/lib/redmine/scm/adapters/mercurial_adapter.rb#L27 ?
Updated by Wesly Grefrath almost 16 years ago
Actions
#8
I set the absolute path, i.e.:
HG_BIN = "/usr/xtreme/bin/hg"
Restarted httpd but still same error
Updated by Toshi MARUYAMA almost 16 years ago
Actions
#9
Does "diff" and "annotate" on Redmine work fine?
Updated by Wesly Grefrath almost 16 years ago
Actions
#10
"diff" works, "annotate" doesn't (annotate gives the exact same error in the log)
Updated by Toshi MARUYAMA almost 16 years ago
Actions
#11
I don't know the reason that "diff" works and "cat" and "annotate" do not work.
I can't reproduce on my Fedora 13 and Mercurial 1.7.2.
If possible, could you run unit test on your test environment.
source:trunk/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
Updated by Wesly Grefrath almost 16 years ago
Actions
#12
How do I create the Mercurial test repository?
ruby test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb /xtreme/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement Mercurial test repository NOT FOUND. Skipping unit tests !!! Loaded suite test/unit/lib/redmine/scm/adapters/mercurial_adapter_test Started .. Finished in 0.012988 seconds. 2 tests, 1 assertions, 0 failures, 0 errors
Updated by Toshi MARUYAMA almost 16 years ago
Actions
#13
$ rake test:scm:setup:mercurial
Updated by Wesly Grefrath almost 16 years ago
Actions
#14
ruby test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
/xtreme/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
Loaded suite test/unit/lib/redmine/scm/adapters/mercurial_adapter_test
Started
.abort: requirement 'dotencode' not supported!
abort: requirement 'dotencode' not supported!
abort: requirement 'dotencode' not supported!
.abort: requirement 'dotencode' not supported!
abort: requirement 'dotencode' not supported!
abort: requirement 'dotencode' not supported!
.abort: requirement 'dotencode' not supported!
abort: requirement 'dotencode' not supported!
Eabort: requirement 'dotencode' not supported!
abort: requirement 'dotencode' not supported!
Fabort: requirement 'dotencode' not supported!
abort: requirement 'dotencode' not supported!
abort: requirement 'dotencode' not supported!
abort: requirement 'dotencode' not supported!
Eabort: requirement 'dotencode' not supported!
.abort: requirement 'dotencode' not supported!
.
Finished in 1.144645 seconds.
1) Error:
test_annotate(MercurialAdapterTest):
NoMethodError: undefined method `lines' for nil:NilClass
test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:78:in `test_annotate'
2) Failure:
test_cat(MercurialAdapterTest)
[test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:69:in `test_cat'
test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:67:in `each'
test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:67:in `test_cat']:
<nil> is not true.
3) Error:
test_diff(MercurialAdapterTest):
NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.size
test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:50:in `test_diff'
test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:48:in `each'
test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:48:in `test_diff'
8 tests, 33 assertions, 1 failures, 2 errors
Updated by Toshi MARUYAMA almost 16 years ago
Actions
#15
Updated by Wesly Grefrath almost 16 years ago
Actions
#16
Ok. tip cloned and rev 336724d7e8fa (1.1.0 I think)
Updated by Wesly Grefrath almost 16 years ago
Actions
#17
- Status changed from New to Resolved
I've looked at the installed plugins, seems redmine_repo_pygments was installed. I removed that and now it works! Darn plugins. Thanks for your help!
Updated by Toshi MARUYAMA almost 16 years ago
Actions
#18
Updated by Toshi MARUYAMA almost 16 years ago
Actions
#19
- Status changed from Resolved to Closed